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

Christoph Kutzinski commented on MRELEASE-524:
----------------------------------------------

Thanks, seems to work now.

However, the documentation on 
http://maven.apache.org/plugins/maven-release-plugin/examples/branch.html is a 
little bit misleading as it doesn't mention the updateBranchVersions parameter 
which you have to use. Otherwise the .rel parameters will have no effect.
I.e.
mvn --batch-mode release:branch -DbranchName=my-branch-1.2 
-Dproject.rel.org.myCompany:projectA=1.2 \
     -Dproject.dev.org.myCompany:projectA=2.0-SNAPSHOT

should read:
mvn --batch-mode release:branch -DupdateBranchVersions=true 
-DbranchName=my-branch-1.2 -Dproject.rel.org.myCompany:projectA=1.2 \
     -Dproject.dev.org.myCompany:projectA=2.0-SNAPSHOT

>  command line versions don't seem to work on release:branch for specific 
> format 
> --------------------------------------------------------------------------------
>
>                 Key: MRELEASE-524
>                 URL: http://jira.codehaus.org/browse/MRELEASE-524
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: branch
>    Affects Versions: 2.0
>         Environment: maven 2.2.1
>            Reporter: Max Schaefer
>            Assignee: Brett Porter
>             Fix For: 2.1
>
>         Attachments: MRELEASE-524-batch-mode(2).patch, 
> MRELEASE-524-batch-mode.patch
>
>
> I have tried passing versions for certain modules to the command line while 
> making a branch. The plugin ignores my parameters when running 
> release:branch. It injects the defaults if I pass parameters in batch mode.
> E.g. this command taken from the documentation does not work.
> mvn --batch-mode release:branch -DbranchName=my-branch-1.2 
> -Dproject.rel.org.myCompany:projectA=1.2 \
>      -Dproject.dev.org.myCompany:projectA=2.0-SNAPSHOT
> release:prepare supports this specific format for setting these values at 
> command line.
> Setting these values in a release.properties file e.g.
> project.dev.org.myCompany\:projectA=2.0-SNAPSHOT
> project.rel.org.myCompany\:projectA=1.2
> works also fine.
> Specifying the default at commandline works also e.g.
> mvn --batch-mode release:branch -DbranchName=my-branch-1.2 
> -DreleaseVersion=1.2 \
>      -DdevelopmentVersion=2.0-SNAPSHOT

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