[
http://jira.codehaus.org/browse/MRELEASE-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242402#action_242402
]
werner mueller commented on MRELEASE-611:
-----------------------------------------
there is a little issue with the patch: the autoVersionSubmodules is ignored if
the version changes from release ("1.0.0") to snapshot (1.0.0-SNAPSHOT), the
plugin asks for the new version for every module.
I tried to fix it in org.apache.maven.shared.release.phase.MapVersionsPhase
around line 74
{code:java}
if ( releaseDescriptor.isAutoVersionSubmodules() &&
ArtifactUtils.isSnapshot( rootProject.getVersion() ) )
{
// get the root project
{code}
by commenting /* && ArtifactUtils.isSnapshot( rootProject.getVersion() */
this works initially but re-executing the goal does not increment the version
(1.0.0 -> 1.0.1-SNAPSHOT -> 1.0.1-SNAPSHOT -> 1.0.1-SNASPHOT) any more.
> The update-versions goal fails when project is not at a SNAPSHOT version
> ------------------------------------------------------------------------
>
> Key: MRELEASE-611
> URL: http://jira.codehaus.org/browse/MRELEASE-611
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Karl M. Davis
> Priority: Minor
> Attachments: maven-release-plugin-2.1.patch
>
>
> Trying to use the {{update-versions}} goal fails if the project is not at a
> {{SNAPSHOT}} version. This is a little silly, as one of the reasons for using
> this goal is to fix that exact problem.
> It currently fails with:
> {noformat}
> [INFO] [release:update-versions {execution: default-cli}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] You don't have a SNAPSHOT project in the reactor projects list.
> [INFO]
> ------------------------------------------------------------------------
> {noformat}
--
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