|
It is common to use properties for things that share versions - such as slf4j, spring, etc - but sometimes you want to update just properties for a specific group and not all groups.
(For instance, your company com.foo dependencies should be updated, but you dont' want to update your ${spring.version})
The attached patch makes the update-properties use the same -Dincludes and -Dexcludes as the update-dependencies mojo.
When deciding whether to update a property or not, it walks over every artifact that is in the ArtifactAssociation and makes sure that they are all allowed to be updated based on the inclusion / exclusion filters.
If a property is used by an artifact that is not allowed to be updated, it will log a message explaining that. (if a property is shared between com.foo and com.bar and you said -Dincludes=com.foo - then that property wont be updated)
Included in the patch is updated documentation and three new IT's that test the behavior.
|