Have you tried to increase PermGen space in this way? $ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512M" $ mvn .....
Thanks, moon On Mon, Dec 7, 2015 at 3:07 PM Madhav Annamraju <[email protected]> wrote: > getting this error when I run the maven build. Any ideas where I can set > the JVM settings? > > apache-maven-3.3.9/conf/logging/ > > --------------------------------------------------- > > Exception in thread "main" java.lang.OutOfMemoryError: PermGen space > > at > > java.util.concurrent.CopyOnWriteArrayList.iterator(CopyOnWriteArrayList.java:959) > > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:877) > > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:606) > > at > > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > > at > > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) >
