I have been trying to run on mac a ready maven project which works under linux. When calling mvn clean install it runs a portion of the tests and then I am getting
mvn clean install
I fixed this problem by adding another magic environmental variable
JAVA_TOOL_OPTIONS="-Xmx1024m -XX:MaxPermSize=512m -Xms512m"