[
http://jira.codehaus.org/browse/MVERSIONS-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=245976#action_245976
]
Yongjun Rong commented on MVERSIONS-134:
----------------------------------------
This is the patch for the fix I made.
{code}
Index: PomHelper.java
===================================================================
--- PomHelper.java (revision 13130)
+++ PomHelper.java (working copy)
@@ -728,6 +728,13 @@
addDependencyAssocations( helper, expressionEvaluator, result,
model.getDependencyManagement().getDependencies(), false );
}
+ List colProjects=project.getCollectedProjects();
+ for (int i=0;i<colProjects.size();i++){
+ MavenProject subProject= (MavenProject) colProjects.get(i);
+ ExpressionEvaluator subExpressionEvaluator =
helper.getExpressionEvaluator(subProject );
+ Model subModel = getRawModel(subProject );
+ addDependencyAssocations( helper, subExpressionEvaluator, result,
subModel.getDependencies(), false );
+ }
addDependencyAssocations( helper, expressionEvaluator, result,
model.getDependencies(), false );
if ( model.getBuild() != null )
{
{code}
> Cannot update properties dependencies when the property is defined in the
> super module and refered in the sub-module.
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: MVERSIONS-134
> URL: http://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 contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.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