You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "werner mueller (JIRA)" <ji...@codehaus.org> on 2010/11/08 14:43:03 UTC

[jira] Commented: (MRELEASE-611) The update-versions goal fails when project is not at a SNAPSHOT version

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

werner mueller commented on MRELEASE-611:
-----------------------------------------

we use a quite common way of creating releases. After the tag was created here and there we need a branch from that tag. Since we use a flat project structure the branch goal fails (see MRELEASE-604) so we cant create the branch and do a release (for having the tag)

the update-version goal could have solved this if it would accept released versions to change them into SNAPSHOT.

I'll attach a patch for 2.1 which introduces a new option so the non-snapshot version restriction can be ignored.

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