Last Updated: February 25, 2016
·
1.327K
· jcreigno

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