3 ways to solve java.lang.OutOfMemoryError: PermGen space in Maven build

http://roufid.com/java-lang-outofmemoryerror-permgen-space-in-maven-build/ In my case, the following solved my permgen space issue: maven-surefire-plugin 1 2 3 4 5 6 7 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-XX:MaxPermSize=1024m</argLine> </configuration> </plugin>