Sometimes Maven will fail when running the test cases with this error.

java.lang.OutOfMemory

This means that Maven has run out of available system memory.

To increase the memory available to Maven, the environment variable MAVEN_OPTS should be set to the value -Xmx1024m -XX:MaxPermSize=128m, or more depending on the amount of memory you have available on your machine.

https://confluence.slac.stanford.edu/pages/viewpage.action?pageId=38246

Advertisements