Hi everybody, I'm trying to setup a working environment under windows 7 to play a bit with alfresco but i can not use the integration-test goal. I used m2e to create the project importing from https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml, then i have choosen the amp archetype 1.1.1. I have set the environment variable MAVEN_OPTS="-Xms1024m -Xmx4096m -XXermSize=1024m". But when the system tries to set up tomcat (seems that this last version uses it instead of jetty) it starts to giving me error Caused by: java.lang.OutOfMemoryError: PermGen space
I had the same error. I just removed the quotes in the MAVEN_OPTS variable and it solved the problem…
Another possible cause I can think of : if you run the integration-test goal from Eclipse, maybe it uses the JRE options instead of the MAVEN_OPTS environment variable ?
My stupid fault, how can a java32 run a heap of 4096m? Switched to a 64b JDK and added the "-Xms1024m -Xmx4096m -XXermSize=1024m" to the VM arguments in the JRE tab of Maven run as… since the MAVEN_OPTS does not affect m2e.