Skip to content

Instantly share code, notes, and snippets.

@jonashackt
Created November 30, 2015 16:54
Show Gist options
  • Save jonashackt/98ec1e7d809e1f1b02b2 to your computer and use it in GitHub Desktop.
Save jonashackt/98ec1e7d809e1f1b02b2 to your computer and use it in GitHub Desktop.
Maven increment Version according to Numberingconventions of pom and update it in project.version inside pom
mvn build-helper:parse-version versions:set -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.minorVersion}.\${parsedVersion.nextIncrementalVersion} versions:commit
@jonashackt
Copy link
Author

Remember to Escape the ${}-Mavenparameter via "", otherwise it won´t work and say bad substitution...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment