Maven Version Manager
Manage your mavens. Easy.
Set the version of maven with your project.
$ cat mvnvm.properties
mvn_version=
3.0.5
Once.
Team Members
Everyone in your team is guaranteed to be working with the same version.
Build System
No need to install multiple versions of maven on all of your build agents.
Installation
Use Brew
Don't use Brew
$ mkdir -p ~/bin && curl -s https://bitbucket.org/mjensen/mvnvm/raw/master/mvn > ~/bin/mvn && chmod 0755 ~/bin/mvn
Add the ~/bin directory to your path.
Usage
$ echo "mvn_version=3.0.5" > mvnvm.properties
$ git add mvnvm.properties
Specify the version.
$ mvn -d clean package
[MVNVM] add mvn_argument: clean
[MVNVM] add mvn_argument: package
[MVNVM] maven version: 3.0.5
[MVNVM] downloading: http://mirror.ventraip.net.au/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.zip
[MVNVM] to: /home/mjensen/.mvnvm/apache-maven-3.0.5-bin.zip
[MVNVM] extracting: /home/mjensen/.mvnvm/apache-maven-3.0.5
[INFO] Scanning for projects...
Use maven.