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

Vincent Massol commented on MRELEASE-666:
-----------------------------------------

The parent POM has:

{noformat}
...
  <properties>
    <rendering.version>3.0-milestone-3</rendering.version>
    <commons.version>3.0-milestone-3</commons.version>
...
{noformat}

And the error we get is:

{noformat}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:2.1:prepare (default-cli) on 
project xwiki-core-parent: The version could not be updated: ${commons.version} 
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:2.1:prepare (default-cli) on 
project xwiki-core-parent: The version could not be updated: ${commons.version}
{noformat}


> release:prepare can fail during rewrite-poms-for-development phase if a 
> property matches the version being released
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-666
>                 URL: http://jira.codehaus.org/browse/MRELEASE-666
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.1
>         Environment: Linux
>            Reporter: Marius Dumitru Florea
>         Attachments: maven-release-prepare-debug-log.txt
>
>
> Executing
> {noformat}
> mvn release:prepare -DautoVersionSubmodules=true -Pci
> {noformat}
> against http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/ @r35313 in 
> order to create 
> http://svn.xwiki.org/svnroot/xwiki/platform/core/tags/xwiki-core-3.0-milestone-3/
>  fails with the attached log (I attached only the final part of the console 
> log) when using {{3.0-milestone-3}} as release version. Prepare succeeds if 
> release version is {{3.0-test-3}}. In other words release:prepare fails if 
> the version being released matches the {{commons.version}} property defined 
> in the parent pom. Note that after release:prepare fails all poms are ready 
> to be committed, i.e. I just had to commit them to finish the release:prepare 
> , so it looks like release:prepare manages to rewrite the poms for next 
> development iteration but fails just before committing them for some obscure 
> reason.
> I was able to reproduce this with both maven 2.2.1 and 3.0.3.

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