I\'m trying to install maven through the terminal by following these instructions.
So far I got this
export M2_HOME=/user/apple/apache-maven-3.0.3
ex
You can use Maven Version Manager through which you can use multiple version of Maven per directory base.
Installation
Using Homebrew brew install mvnvm
Without Homebrew mkdir -p ~/bin && curl -s https://bitbucket.org/mjensen/mvnvm/raw/master/mvn > ~/bin/mvn && chmod 0755 ~/bin/mvn
and add ~/bin
to path.
Usage
Default Version
To set default maven version set the environment variable DEFAULT_MVN_VERSION
to the maven version to be used by default.
Maven version for the folder
Create a file named mvnvm.properties
in the folder and configure the maven version as follows
mvn_version=