MAVEN_HOME, MVN_HOME or M2_HOME [duplicate]
Here is my Maven setup. You can use it as an example. You don't need anything else in order to use Maven.
M2_HOME is used for both Maven 2 and 3
export M2_HOME=/Users/xxx/sdk/apache-maven-3.0.5export M2=$M2_HOME/binexport MAVEN_OPTS="-Xmx1048m -Xms256m -XX:MaxPermSize=312M"export PATH=$M2:$PATH