mvn versions package code example
Example 1: mvn versions set
mvn versions:set -DnewVersion=2.50.1-SNAPSHOT
Example 2: mvn versions set
mvn versions:commit
mvn versions:set -DnewVersion=2.50.1-SNAPSHOT
mvn versions:commit