Monday, June 20, 2011

How to Increase Java Heap Memory for Maven 2

The heap size of the JVM used by Maven can be changed using the environment variable MAVEN_OPTS. 

On Windows : 

Update build.bat with following command
set MAVEN_OPTS=-Xmx512m

On Linux (bash shell) :

Update with following command
export MAVEN_OPTS=-Xmx512m

No comments:

Post a Comment