Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 1.2
-
Fix Version/s: None
-
Labels:None
-
Environment:Windows XP
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)
-
Number of attachments :
Description
The goals operating on property controlled version numbers (e.g. display-property-updates) only work if the properties are defined in the targeted POM itself, not in a parent POM.
Example:
If module B has a dependency on module A, declared in B as follows:
<dependency>
<groupId>com.my.test</groupId>
<artifactId>module-A</artifactId>
<version>$
</dependency>
but ${module-A.version}
is not defined in B's own POM, but its parent, then the plugin doesn't pick it up - it simply says:
"This project does not have any properties associated with versions"
This is a major problem for us, since all our dependency version properties are defined in each project's root POM, i.e. the parent of all sub-modules in that project.
This is by design.
If the property is not defined in the current pom, then there are no properties to update in the current pom.
If the properties are defined in the parent pom, then run the goal from the parent pom (including the child projects as part of the aggregator if necessary in order to pick up the dependencies)