安装时Maven编译问题?

时间:2016-11-13 16:31:52

标签: java maven

我正在使用maven来构建我的项目,它正在为我的所有项目工作,除了一个。我在这里看到的问题是:

[INFO] Compiling 91 source files to /ahpsan/jobs/projects/BasicsDatamart/Build_TASK_Polaris_PLM_2017/target/classes


 The system is out of resources.
 Consult the following stack trace for details.
 java.lang.StackOverflowError
    at com.sun.tools.javac.comp.Check.checkType(Check.java:533)
    at com.sun.tools.javac.comp.Attr$ResultInfo.check(Attr.java:476)
    at com.sun.tools.javac.comp.Attr.check(Attr.java:275)
        at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)

    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
        at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1806)
    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3218)
    at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1897)
    at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:566)
    at com.sun.tools.javac.comp.Attr.visitApply(Attr.j[INFO] -------------------------------------------------------------
 [ERROR] COMPILATION ERROR : 
 [INFO] -------------------------------------------------------------
 [ERROR] An unknown compilation problem occurred
 [INFO] 1 error
 [INFO] -------------------------------------------------------------
 [INFO] ------------------------------------------------------------------------
 [INFO] BUILD FAILURE

我在这里使用的编译器插件是:

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <extraJvmArgs>-Xms768m -Xmx1048m</extraJvmArgs> 
                </configuration>
            </plugin>

如果我在这里遗失了什么,请你告诉我吗?

4 个答案:

答案 0 :(得分:1)

我知道这是一个老问题,OP 很可能已经找到了解决方法或解决方法。然而,我们有一连串的新答案可能无济于事。所以我认为注入一些更好的想法会很好。

此问题很可能是由于 Java 编译器中的错误造成的。 (如果您浏览 Java 错误数据库和 OpenJDK 问题跟踪器,您会发现此类事情的其他示例。)堆栈跟踪的重复性质表明您正在编译的特定文件的某些内容触发了无限递归循环编译器。这是一个错误。

不太可能通过调整 Java 编译器的堆栈或堆大小参数来解决此问题。

(无限递归循环将溢出任何堆栈。这不是 OOME。)

重新启动 IDE、重建、重新获取依赖项等也不太可能有帮助。 (虽然尝试没有坏处。)

IMO,解决此问题的正确方法是执行以下操作:

  1. 尝试使用较新(或较旧)的 Java 编译器进行编译1。 Java 编译器错误可能已经修复。

  2. 在 Java 错误数据库和其他来源中搜寻有关 Java 编译器中 StackOverflowError 故障的其他报告。寻找堆栈跟踪相似的情况。如果您找到了很好的匹配项,请查看他们是否确定了触发问题的他们的输入 Java 源代码的哪些功能。这可能为调整您的源代码以避免问题提供线索。

  3. 识别并尝试简化触发失败的 Java 源文件。尝试缩小导致问题的代码中的特定功能。然后看看你是否能想出如何避免这个问题。

  4. 如果您一无所获,请提交包含所有证据的错误报告。您需要提供 Java 工程师重现问题所需的所有详细信息。尝试为他们提供一个最小示例...这样他们就不必浪费时间自己缩小范围。 ('因为难以重现/难以缩小问题范围,往往会被推迟。)

  5. 如果您真的很绝望,可以尝试下载合适版本的 OpenJDK 源代码并自己调试编译器错误。


1 - 如果您要升级 JDK,最好保留开发环境和工具的当前状态。这将帮助您弄清楚如何解决问题……并防止升级实际上使事情变得更糟!

答案 1 :(得分:0)

尝试以下列方式提供更多内存来编译插件

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.8</source> <target>1.8</target> <fork>true</fork> <meminitial>512m</meminitial> <maxmem>1048m</maxmem> </configuration> </plugin>

以下是链接https://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-with-memory-enhancements.html

答案 2 :(得分:0)

尝试在您的 cmd 窗口中运行:

set MAVEN_OPTS=-Xms256m -Xmx1024m -Xss1024k

这为我解决了问题!

如果1024M的空间问题再次发生错误,试试这个:

set MAVEN_OPTS=-Xms256m -Xmx512m -Xss1024k

答案 3 :(得分:0)

首先检查发生错误的.java文件。在 Eclipse/IntelliJ 中检查此文件,并查看该特定文件中是否指示了某些错误。

其次,在eclipse中右击你的项目文件夹,选择ma​​ven,然后选择更新项目,然后再次尝试构建

第三,从cmd打这个命令 设置 MAVEN_OPTS="-Xmx1048m -Xms256m -XX:MaxPermSize=312M"