[ 
http://jira.codehaus.org/browse/MRELEASE-287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Flanigan updated MRELEASE-287:
-----------------------------------

    Attachment: AbstractRewritePomsPhase-resolve-parent-snapshot.patch

Jean-Philippe's workaround as a patch.  I couldn't find the original base-file, 
but this is my best guess at applying it to recent source code.  My testing of 
the workaround was inconclusive, but perhaps having it in patch form will help 
someone.

> release:prepare does not change the version of parent snapshot
> --------------------------------------------------------------
>
>                 Key: MRELEASE-287
>                 URL: http://jira.codehaus.org/browse/MRELEASE-287
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>            Reporter: Jean-Philippe Steck
>         Attachments: AbstractRewritePomsPhase-resolve-parent-snapshot.patch, 
> AbstractRewritePomsPhase.java, release-labo.zip
>
>
> In a project pom.xml, when the parent version is a snapshot : for example :
> <parent>
>       <groupId>groupId</groupId>
>       <artifactId>artifcatId</artifactId>
>       <version>0.1-SNAPSHOT</version>
> </parent>
> Running "mvn release:prepare" prompt for 
> 'groupId:artifactId set to release? (yes/no) yes: :
> What is the next development version? (0.2-SNAPSHOT) 0.2-SNAPSHOT: :
> But then it's still 0.1-SNAPSHOT in the release and in the new developpement 
> version.
> I expected the release version to be :
> <parent>
>       <groupId>groupId</groupId>
>       <artifactId>artifcatId</artifactId>
>       <version>0.1</version>
> </parent>
> and the new developpement version :
> <parent>
>       <groupId>groupId</groupId>
>       <artifactId>artifcatId</artifactId>
>       <version>0.2-SNAPSHOT</version>
> </parent>
> I attached an exemple.
> Thanks for any feedback on this.
> JP

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

        

Reply via email to