[
https://jira.codehaus.org/browse/MRELEASE-287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed MRELEASE-287.
-----------------------------------
Resolution: Duplicate
Duplicate of MRELEASE-317, which was already fixed with version 2.1
> release:prepare does not change the version of parent snapshot
> --------------------------------------------------------------
>
> Key: MRELEASE-287
> URL: https://jira.codehaus.org/browse/MRELEASE-287
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Reporter: Jean-Philippe Steck
> Attachments: AbstractRewritePomsPhase.java,
> AbstractRewritePomsPhase-resolve-parent-snapshot.patch, 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, 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