Problem
When you try to execute the maven comand mvn clean install shows the following message error:
...
Exception in thread "main" Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"
Reason
There is not enough memory to execute all the steps necessary to the build (integration tests, start the jetty server etc.).
Solution
Creation of a environment variable MAVEN_OPTS with the value -Xmx1024m -XX:MaxPermSize=512m
Related Links
Maven throws “java.lang.OutOfMemoryError”
Setting Java heap space under Maven 2 on Windows
No comments:
Post a Comment