java.lang.OutOfMemoryError:Java堆空间位于java.util.jar.Manifest $ FastInputStream。(Manifest.java:315),位于java.util.jar.Manifest $。 FastInputStream。(Manifest.java:310)在java.util.jar.Manifest.read(Manifest.java:178)在java.util.jar.Manifest。(Manifest.java:52)在java.util.jar.JarFile .getManifestFromReference(JarFile.java:165)at java.util.jar.JarFile.getManifest(JarFile.java:146)at sun.misc.URLClassPath $ JarLoader $ 2.getManifest(URLClassPath.java:693)at java.net.URLClassLoader .defineClass(URLClassLoader.java:221)at java.net.URLClassLoader.access $ 000(URLClassLoader.java:56)at java.net.URLClassLoader $ 1.run(URLClassLoader.java:195)at java.security.AccessController.doPrivileged( Java的java.net.URLClassLoader.findClass(URLClassLoader.java:188)的本地方法)。com的lang.ClassLoader.loadClass(ClassLoader.java:252)(位于com.sun.tools.javac.util.JCDiagnostic.fragment(JCDiagnostic.java:158)处的java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) com.sun.tools.javac.comp.Resolve $ ResolveError.report(Resolve.java:1581)上的.sun.tools.javac.comp.Resolve.absentKindName(Resolve.java:1486) com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:1214)的com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate的.comp.Resolve.access(Resolve.java:1079) .java:156)at com.sun.tools.javac.comp.MemberEnter.enterAnnotations(MemberEnter.java:743)at com.sun.tools.javac.comp.MemberEnter.access $ 300(MemberEnter.java:42)at com。 .com.sun.tools.javac.comp.Annotate.flush(Annotate.java:95)处com.sun.tools.javac处的.sun.tools.javac.comp.MemberEnter $ 5.enterAnnotation(MemberEnter.java:711)。在com.sun.tools.javac.comp.Enter.main(Enter.com)上的comp.Annotate.enterDone(Annotate.java:87)在com.sun.tools.javac.comp.Enter.complete(Enter.java:472) com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)处com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)处的java:429) .tools.javac.main.Main.compile(Main.java:353)在com.sun.tools.javac.main.Main.compile(Main.java:279)
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.927s
[INFO] Finished at: Tue Sep 15 10:28:14 CST 2015
[INFO] Final Memory: 21M/63M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "Maven" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project pmcs: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
看起来512mb还不够。增加堆内存。前任:
MAVEN_OPTS=-Xms256m -Xmx1024m
如果那不起作用,请增加更多。
MAVEN_OPTS=-Xms256m -Xmx2048m
参考:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句