Contents. Maven Install Windows. Download and install Maven (at least version 2.2.1) from the. Add bin to your “Path” System Variable. Mac The following is from for installing maven.
The Mac Tutorial Shows You Step-by-Step How-to Install Maven on Mac El Capitan 10.11 OS X BSD/Unix Desktop. To Install Maven on Mac El Capitan a Working Java JDK 6.
In a command terminal, add the M2HOME environment variable, e.g. Export M2HOME=/usr/local/apache-maven/apache-maven-2.2.1. Add the M2 environment variable, e.g. Export M2=$M2HOME/bin. Optional: Add the MAVENOPTS environment variable to specify JVM properties, e.g. Export MAVENOPTS=-Xms256m -Xmx512m.
This environment variable can be used to supply extra options to Maven. Add M2 environment variable to your path, e.g. Export PATH=$M2:$PATH.
Make sure that JAVAHOME is set to the location of your JDK, e.g. Export JAVAHOME=/usr/java/jdk1.6.016 and that $JAVAHOME/bin is in your PATH environment variable. Run mvn -version to verify that it is correctly installed. Using Macports Using Macports you can greatly increase the simplicity of installing Maven2. Install Macports if it is not already.
In a command terminal type 'ports install maven2' Linux See above. Configure Maven (Deprecated) (The following steps are no longer be necessary for calendar or directory to run. They will eventually be removed from this page.) If you cannot access the maven repository configured for your project, you like. Add the following to your conf settings.xml inside of the servers tag: (change the username and password).
Here are the instructions from the site: 1. Extract the distribution archive, i.e. Apache-maven-2.0.8-bin.tar.gz to the directory you wish to install Maven 2.0.8.
These instructions assume you chose '/usr/local/apache-maven'. The subdirectory apache-maven-2.0.8 will be created from the archive. In a command terminal, add the M2HOME environment variable, e.g. 'export M2HOME=/usr/local/apache- maven/apac he-maven-2.0.8'.
Add the M2 environment variable, e.g. 'export M2=$M2HOME/bin'. Optional: add the MAVENOPTS environment variable to specify JVM properties, e.g. 'export MAVENOPTS=-Xms256m -Xmx512m'. This environment variable can be used to supply extra options to Maven. Add M2 environment variable to your path, e.g.
'export PATH=$M2:$PATH'. Make sure that JAVAHOME is set to the location of your JDK, e.g.
'export JAVAHOME=/usr/java/jdk1.5.002' and that '$JAVAHOME/bin' is in your PATH environment variable. Run 'mvn -version' to verify that it is correctly installed.
When i run that, I get: drwxr-xr-x+ 39 ryancoughlin ryancoughlin 1326 Apr 8 17:56. Drwxr-xr-x 5 root admin 170 Dec 3 12:36.