Skip to content

Instantly share code, notes, and snippets.

@jweaver
Created January 27, 2017 00:05
Show Gist options
  • Save jweaver/b7b65a1c666300c6a04635a3c593dfa9 to your computer and use it in GitHub Desktop.
Save jweaver/b7b65a1c666300c6a04635a3c593dfa9 to your computer and use it in GitHub Desktop.
Maven commands to get and set version
mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec
mvn versions:set -DnewVersion=1.2.3-SNAPSHOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment