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

David Cloutier commented on MRELEASE-496:
-----------------------------------------

I have the same problem... I've tried using:

 -Dproject.rel.my.org:myProject=[VERSION]
 -Dproject.dev.my.org:myProject=[VERSION]
 -DreleaseVersion=[VERSION]
 -DdevelopmentVersion=[VERSION]

None of them work in "batch-mode"

I'm trying to figure out where the code fails, but I can't seem to figure it 
out.

I think "org.apache.maven.shared.release.phase.RewritePomsForBranchPhase" uses 
"org.apache.maven.shared.release.config.ReleaseDescriptor" to figure out which 
version id's to use, but I can't find the source code for 
"org.apache.maven.shared.release.config.ReleaseDescriptor" :(


Plz help.

> Branch not working in batch mode
> --------------------------------
>
>                 Key: MRELEASE-496
>                 URL: http://jira.codehaus.org/browse/MRELEASE-496
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: branch
>    Affects Versions: 2.0-beta-9
>         Environment: Apache Maven 2.1.0 (r755702; 2009-03-19 06:10:27+1100)
> Java version: 1.6.0_10
> Java home: /usr/java/jdk1.6.0_10/jre
> Default locale: en_AU, platform encoding: UTF-8
> OS name: "linux" version: "2.6.30.8-64.fc11.x86_64" arch: "amd64" Family: 
> "unix"
>            Reporter: Matt Milliss
>
> Creating a branch batch mode fails.
> From a trunk version 09.20.00-SNAPSHOT I try to create a branch with the 
> version 09.20.01-SNAPSHOT.
> The following command to branch in non-batch mode works fine,
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true 
> -DupdateWorkingCopyVersions=false
> when prompted for the branch version I enter 09.20.01-SNAPSHOT, this works as 
> expected and the branch is created with the version 09.20.01-SNAPSHOT.
> In batch mode the following command creates a branch with the same version as 
> trunk
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true 
> -DupdateWorkingCopyVersions=false 
> -Dproject.rel.my.org:myProject=09.20.01-SNAPSHOT --batch-mode

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