【发布时间】:2018-06-19 14:21:50
【问题描述】:
我正在尝试使用 maven 编译器插件 (3.7) 编译我的代码,但我不断收到未知的编译错误,并且在编译过程中系统资源不足,请查看下面的错误日志。该日志无助于定位编译问题,因为该项目的规模非常大。在我们将一些功能合并到这个分支之前,它之前运行良好,我检查了 pom.xml 并且依赖项没有问题,并且项目在开发期间在 eclipse 中运行良好。
exec] INFO: Changing method name from isSubstitue to getSubstitue
[exec] [INFO]
[exec] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ siemops ---
[exec] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[exec] [INFO] Copying 26 resources
[exec] [INFO]
[exec] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ siemops ---
[exec] [INFO] Changes detected - recompiling the module!
[exec] [INFO] Compiling 1106 source files to C:\workspace\prj\target\classes
[exec]
[exec]
[exec] The system is out of resources.
[exec] Consult the following stack trace for details.
[exec] java.lang.StackOverflowError
[exec] at com.sun.tools.javac.code.Types$Rewriter.visitClassType(Types.java:4289)
[exec] at com.sun.tools.javac.code.Types$Rewriter.visitClassType(Types.java:4275)
[exec] at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:778)
[exec] at com.sun.tools.javac.code.Types$UnaryVisitor.visit(Types.java:4532)
[exec] at com.sun.tools.javac.code.Types$Rewriter.visitTypeVar(Types.java:4322)
[exec] at com.sun.tools.javac.code.Types$UnaryVisitor.visit(Types.java:4532)
[exec] [INFO] -------------------------------------------------------------
[exec] [ERROR] COMPILATION ERROR :
[exec] [INFO] -------------------------------------------------------------
[exec] [ERROR] An unknown compilation problem occurred
[exec] [INFO] 1 error
[exec] [INFO] -------------------------------------------------------------
【问题讨论】: