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