maven install 报错信息:
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.createEntry(HashMap.java:897)
at java.util.HashMap.addEntry(HashMap.java:884)
at java.util.HashMap.put(HashMap.java:505)
at com.sun.tools.javac.parser.EndPosParser.storeEnd(EndPosParser.java:64)
at com.sun.tools.javac.parser.JavacParser.literal(JavacParser.java:579)
at com.sun.tools.javac.parser.JavacParser.literal(JavacParser.java:484)
at com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:993)
at com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:701)
at com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:672)
at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:628)
at com.sun.tools.javac.parser.JavacParser.termRest(JavacParser.java:660)
at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:631)
at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:610)
at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:1644)
at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:1561)
at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:1575)
at com.sun.tools.javac.parser.JavacParser.methodDeclaratorRest(JavacParser.java:2696)
at com.sun.tools.javac.parser.JavacParser.classOrInterfaceBodyDeclaration(JavacParser.java:2645)
at com.sun.tools.javac.parser.JavacParser.classOrInterfaceBody(JavacParser.java:2573)
at com.sun.tools.javac.parser.JavacParser.classDeclaration(JavacParser.java:2421)
at com.sun.tools.javac.parser.JavacParser.classOrInterfaceOrEnumDeclaration(JavacParser.java:2362)
at com.sun.tools.javac.parser.JavacParser.typeDeclaration(JavacParser.java:2351)
at com.sun.tools.javac.parser.JavacParser.parseCompilationUnit(JavacParser.java:2289)
at com.sun.tools.javac.parser.EndPosParser.parseCompilationUnit(EndPosParser.java:83)
at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:595)
at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:632)
at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:909)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824)
at com.sun.tools.javac.main.Main.compile(Main.java:439)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:126)
at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:169)
解决方法:
原文地址:https://www.cnblogs.com/qlwang/p/8203610.html