Install Maven 2

  1. Download Maven 2.2.X (minimum of 2.0.10) - http://maven.apache.org/download.html
  2. Extract to /opt (should create maven-2.X.X folder)
  3. Set environment variable: MAVEN2_HOME=/opt/maven-2.X.X
  4. Add $MAVEN2_HOME/bin to PATH\
  5. Set the MAVEN_OPTS environment variable
    MAVEN_OPTS='-Xms256m -Xmx796m -XX:PermSize=64m -XX:MaxPermSize=136m'
    
    • Adding -XX:+AggressiveOpts may speed up your builds depending on your OS, JVM, and system hardware