Install Maven 2.2+
- Maven - http://maven.apache.org/
- Download Maven 2.2.X (minimum of 2.2.1) - http://maven.apache.org/download.html
- NOTE: some support exists for Maven 3 but there are a few things that do not work as of 6 Sep 2011
- Extract to /opt (should create apache-maven-2.X.X folder)
- Set environment variable: MAVEN2_HOME=/opt/apache-maven-2.X.X
- Add $MAVEN2_HOME/bin to PATH\
Set the MAVEN_OPTS environment variable (in linux/OSX this is typically done in ~/.bash_profile)
export MAVEN_OPTS='-Xms128m -Xmx796m -XX:PermSize=64m -XX:MaxPermSize=172m'
- Adding -XX:+AggressiveOpts may speed up your builds depending on your OS, JVM, and system hardware