Sunday, September 9, 2012

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 :

Update build.sh with following command
export MAVEN_OPTS=-Xmx512m

1 comment:

Dumps guy said...

really helpful thread.. thankx a lot