A Simple Maven Assembly Plugin and Distribution example with local nexus docker instance
mvn --settings settings.xml deploy
mvn versions:set -DremoveSnapshot
mvn versions:commit
mvn --settings settings.xml deploy
With gitbash:
mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion}-SNAPSHOT versions:commit
With windows command prompt:
mvn build-helper:parse-version versions:set -DnewVersion=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.nextIncrementalVersion}-SNAPSHOT versions:commit