My 3 Favorites Maven Bash alias
1. mvnr
to perform a release quickly
$> alias mvnr='mvn release:prepare -DautoVersionSubmodules=true && mvn release:perform -Dgoals="clean deploy" -DuseReleaseProfile=true'
usage :
$> mvnr
2. mvnset
to set a new version to a multiproject build
$> alias mvnset='mvn org.codehaus.mojo:versions-maven-plugin:1.2:set -DgenerateBackupPoms=false'
usage :
$> mvnset -DnewVersion=1.1.5-SNAPSHOT
3. mvnup
to upgrade dependencies to latest available versions
$> alias mvnup='mvn org.codehaus.mojo:versions-maven-plugin:1.2:update-properties -DgenerateBackupPoms=false'
usage :
$> mvnup
Written by jerome creignou
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Maven
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#