【发布时间】:2020-07-16 05:53:41
【问题描述】:
我在构建时遇到此错误:
[ERROR] PermGen space -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
使用 java 7. 帮助?
【问题讨论】:
-
您在正常构建过程中遇到了这个问题?
-
是的。不确定具体在哪个阶段...
-
大型构建?您在哪个 JDK 和哪个 Maven 版本上运行...在容器等内运行您的构建?普通命令行?
-
我所期望的那样。拉取依赖项只会执行一次,并且不应影响测试,除非测试是集成测试?
-
我认为拉取无关,但如果没有完整的日志输出,很难猜测。还可以通过
mvn clean verify -DskipTests进行检查,输出很重要……此外,您是否在您的环境中配置了一些内存设置? MAVEN_OPTS 等?从普通命令行运行?