You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Patrick Phelan (JIRA)" <ji...@codehaus.org> on 2009/05/06 14:25:45 UTC

[jira] Commented: (MRELEASE-444) Prepare in multi-module project update the snaphsot version to release version only in one of the submodule

    [ http://jira.codehaus.org/browse/MRELEASE-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=175247#action_175247 ] 

Patrick Phelan commented on MRELEASE-444:
-----------------------------------------

Seeing the exact same issue. The only workaround I can come up with is to move the inter-project dependencies up to the parent poms and manually control the snapshot and hardening of these before and after the release. Very inconvenient. 

> Prepare in multi-module project update the snaphsot version to release version only in one of the submodule
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-444
>                 URL: http://jira.codehaus.org/browse/MRELEASE-444
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.0-beta-8
>         Environment: Apache Maven 2.1.0 (r755702; 2009-03-19 04:10:27+0900)
> Java version: 1.6.0_12
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>            Reporter: Jean-Paul GUIGUI
>         Attachments: test-maven.zip
>
>
> In the case of a multi module project in which a submodule M2 is depending on the submodule M1, only the snapshot dependency of the submodule M2 (for instance D1) will be changed to release by the goal release:prepare. The snapshot dependencies of submodule M1 (D2) will not be automatically set to release into the pom.xml
> Before release:prepare
> Parent
>  |-Module M1-SNAPSHOT
>  |  |-Dependency to D1-SNAPSHOT
>  |-Module M2-SNAPSHOT
>     |-Dependency D2-SNAPSHOT
>     |-Dependency to M1-SNAPSHOT
> After release:prepare
> Parent
>  |-Module M1
>  |  |-Dependency to D1-SNAPSHOT <== WRONG
>  |-Module M2
>     |-Dependency D2
>     |-Dependency to M1
> In attachment a project. To reproduce the bug:
> mvn -f pom-dependency.xml clean install
> mvn clean install
> mvn release:prepare
> cat test-maven-dependency2/pom.xml
> Maybe related to bug MRELEASE 295

-- 
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