Friday, November 5, 2010

How to increase Maven memory.

Enter this line just after the copyright and comments in the mvn.sh file in Maven_home.

export MAVEN_OPTS=”-Xmx512m”

For Maven 2.0.6 onwards you have to set the parameter without double quotes.

export MAVEN_OPTS=-Xmx512m

No comments: