There are a easy way to make Maven put "-SNAPSHOT" on my versions? We have a project with many POMs.
We usualy create branchs from TAGs that haven't SNAPSHOTs.
Use the release plugin:
mvn --batch-mode release:update-versions -DdevelopmentVersion=1.2.0-SNAPSHOT
You can use the versions-plugin to do that:
mvn versions:set -DnewVersion=1.2.0-SNAPSHOT
Alternatively, you could use release:branch
to even create the branch as well (provided the scm settings in your pom are correct):
(check out tag)
mvn release:branch -DbranchName=my-branch -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false -DreleaseVersion=1.0.1-SNAPSHOT
Yes, the property is named releaseVersion, although it is really the version for the branch. (see: http://maven.apache.org/maven-release/maven-release-plugin/examples/branch.html for details)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments