Sunday, March 14, 2010

How to increse the JAVA heap memory size for maven project build in Linux

While you' r doing a maven project building , if the Java heap memory not enough it will throw java.lang.OutOfMemoryError.

Then simply use the following command to increase the heap size.

export MAVEN_OPTS="-Xmx1024m"

  • some maven versions will not allowed for the double quotes