Download, install, and configure Maven

Maven Install


  1. Download and install Maven (at least version 2.2.1) from the Apache Maven Project site.
  2. Add <MAVEN_HOME>\bin to your “Path” System Variable. (How do I add to my Path System Variable?)


The following is from for installing maven

  1. In a command terminal, add the M2_HOME environment variable, e.g. export M2_HOME=/usr/local/apache-maven/apache-maven-2.2.1.
  2. Add the M2 environment variable, e.g. export M2=$M2_HOME/bin.
  3. Optional: Add the MAVEN_OPTS environment variable to specify JVM properties, e.g. export MAVEN_OPTS=-Xms256m -Xmx512m. This environment variable can be used to supply extra options to Maven.
  4. Add M2 environment variable to your path, e.g. export PATH=$M2:$PATH.
  5. Make sure that JAVA_HOME is set to the location of your JDK, e.g. export JAVA_HOME=/usr/java/jdk1.6.0_16 and that $JAVA_HOME/bin is in your PATH environment variable.
  6. Run mvn --version to verify that it is correctly installed.

Using Macports

Using Macports you can greatly increase the simplicity of installing Maven2.

  1. Install Macports if it is not already. [1]
  2. In a command terminal type 'ports install maven2'


See Mac Maven Install 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

  1. Add the following to your <MAVEN_HOME>\conf\settings.xml inside of the servers tag: (change the username and password)
    • <server>
  2. You can also add the same code to your <HOME>\.m2\settings.xml:
    • <settings>
This page was last modified on 11 December 2009, at 14:34.

Note: Content found in this wiki may not always reflect official Church information.