Really? Were you running it from the location the trunk was checked out? For us, if we do a mvn release:prepare in the location of the trunk, then release:perform, and then cd into target/checkout and from there do mvn release:branch -DbranchName=my-branch -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false (interactive mode) then we're able to branch without many problems. Also, if we do an svn co of a tag url and then do mvn release:branch (as before) from the directory the tag was checked out then it also works.
It only gives us problem when we use it in batch mode. On Wed, Oct 14, 2009 at 4:23 PM, Benson Margulies <[email protected]>wrote: > personally, I couldn' t get release:branch to work at all, interactively or > batch. > > On Wed, Oct 14, 2009 at 2:23 PM, Allan Ditzel <[email protected] > >wrote: > > > Hi, > > > > I'm trying to make a branch from a tag in batch mode using the release > > plugin. The pom in the tag has its version set to 0.2.0. I would like for > > the branch version to be 0.2.1-SNAPSHOT, however when I use the plugin it > > always sets the branch version to 0.2.0-SNAPSHOT. However, in interactive > > mode I'm able to create the branch correctly. Here is the command I am > > executing: > > > > mvn -B release:branch -DbranchName=testBranch-0.2.X > > -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false > > -Dproject.rel.test.release_management:test-project=0.2.1 -Ptestprofile > > > > I have also tried: > > > > mvn -B release:branch -DbranchName=testBranch-0.2.X > > -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false > > -Dproject.dev.test.release_management:test-project=0.2.1 -Ptestprofile > > > > and > > > > mvn -B release:branch -DbranchName=testBranch-0.2.X > > -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false > > -Dproject.dev.test.release_management:test-project=0.2.1-SNAPSHOT > > -Ptestprofile > > > > They all yield a pom in the branch with its version set to > 0.2.0-SNAPSHOT. > > > > Does anyone have any ideas? > > > > Thanks, > > > > Allan > > >
