[
https://jira.codehaus.org/browse/MVERSIONS-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285591#comment-285591
]
Stephen Connolly commented on MVERSIONS-134:
--------------------------------------------
If the property is not in the pom in question, then the dependency is
determined by the parent that the property is inherited from. This is
functioning as designed.
What might not be functioning as designed, is that if you are in a reactor,
with both the parent and child, the property in the parent may not get linked
to the child.
The 'fix' you propose has a number of issues:
1. If the reactor has several inheritance trees, each defining and using the
same named property, they will all get linked, rather than just the ones in the
child projects of the project defining the property.
2. No integration tests provided
> Cannot update properties dependencies when the property is defined in the
> super module and refered in the sub-module.
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: MVERSIONS-134
> URL: https://jira.codehaus.org/browse/MVERSIONS-134
> Project: Maven 2.x Versions Plugin
> Issue Type: Bug
> Reporter: Yongjun Rong
>
> I have a multiple module project as below:
> --pom.xml
> --sub1
> --sub1/pom.xml
> --sub2
> --sub2/pom.xml
> When a property defined in the super module pom.xml as below:
> {noformat}
> <project>
> ...
> <properties>
> <test-property-version>1.1.1</test-property-version>
> ....
> </properties>
> ....
> <modules>
> <module>sub1</module>
> <module>sub2</module>
> </modules>
> ...
> </project>
> It is used as below in sub1/pom.xml and sub2/pom.xml
> <project>
> ...
> <dependency>
> <groupId>org.super</groupId>
> <artifactId>sub1</artifactId>
> <version>${test-property-version}</version>
> </dependency>
> ...
> </project>
> {noformat}
> The versions plugin goal "update-properties and display-property-updates"
> cannot find it and update it correctly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email