I'm trying to make a branch and set the maven version on the branch to a non-snapshot version.
When doing this in interactive mode everything works out fine. But when running in batch mode the version on the branch will end in the -SNAPSHOT even though I provide the "updateVersionsToSnapshot=false" property.
I run the following maven goal:
mvn release:branch -B -DreleaseVersion=1.3 -DupdateVersionsToSnapshot=false
-DremoteTagging=false -DsuppressCommitBeforeBranch=true
-DbranchName=generated/release_1.3 -DupdateBranchVersions=true
-DautoVersionSubmodules=true -DupdateWorkingCopyVersions=false -Dusername=myUserName
Any help is appreciated.
Best regards Trym
The problem you describe seems to be documented in https://issues.apache.org/jira/browse/MRELEASE-959
There is a suggested patch in that ticket (which I haven't tested). The team that works on the maven release-plugin hasn't picked up the ticket yet (at the time of writing).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With