The versions-maven-plugin
versions:set
goal show that there is a removeSnapshot
parameter:
removeSnapshot: Whether to remove -SNAPSHOT from the existing version. If not set will default to false.
Type: boolean Since: 2.10 Required: No User Property: removeSnapshot Default: false
I have a Maven multi-module aggregation POM with all the versions in all the modules set to 0.2.0-SNAPSHOT
. I am ready to release (please don't tell me to use the Maven release plugin) and I want to change the version to 0.2.0
. So I try this:
mvn versions:set -DremoveSnapshot=true
Maven stops and asks me:
Enter the new version to set 0.2.0-SNAPSHOT:
Um, if I manually enter 0.2.0
, what's the point of having indicated removeSnapshot=true
?