[ 
https://jira.codehaus.org/browse/MVERSIONS-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285665#comment-285665
 ] 

Stephen Connolly commented on MVERSIONS-134:
--------------------------------------------

{code}
Root 
 +- P1
 |   +- C1
 +- P2
     +- C2
{code}

P1 defines prooperty log4j.version=1.2.5
C1 defines dep log4j:log4j:${log4j.version}

P2 defines prooperty log4j.version=1.2.7
C2 defines dep com.mycompany:log4j:${log4j.version}

Running mvn from Root pom will pull restrictions from C2 into P1
                
> 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


Reply via email to