在进行maven构建时,我收到以下错误。有人知道怎么解决吗?
线程中的线程"main“异常中的异常" thread -1”线程中的" thread -7“异常线程中的" thread -3”异常线程中的" thread -4“异常线程中的" thread -2”异常:线程“UncaughtExceptionHandler -5”异常中抛出的java.lang.OutOfMemoryError :线程" thread -1“异常中从UncaughtExceptionHandler抛出的java.lang.OutOfMemoryError :线程中的java.lang.OutOfMemoryError抛出的”线程-7“异常: java.lang.OutOfMemoryError抛出的异常线程"Thread-3“异常中的UncaughtExceptionHandler :线程"Thread-4”异常中从UncaughtExceptionHandler抛出的java.lang.OutOfMemoryError :线程“线程-2”异常中从UncaughtExceptionHandler抛出的java.lang.OutOfMemoryError :线程“线程-5”中从UncaughtExceptionHandler抛出的java.lang.OutOfMemoryError
Results :
Tests run: 100, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ---------------------------------------------------------------------
[INFO] Total time: 01:14 min
[INFO] Finished at: 2018-02-11T00:12:46+01:00
[INFO] Final Memory: 87M/704M
[INFO] ---------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project coba.zaa.engine.workflow: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was cmd.exe /X /C "C:\xxxxx\Tools\Release2\JDK\jdk_1.7.0.80_x64\jre\bin\java -jar C:\vvv\ZAA\nnnn\mmmmmm\target\surefire\surefirebooter1494547892126715647.jar C:\vvv\ZAA\nnnn\mmmmmm\\target\surefire\surefire2662483945733244110tmp C:\vvv\ZAA\nnnn\mmmmmm\target\surefire\surefire_05005140060060096785tmp"
[ERROR] -> [Help 1]
[ERROR]
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
发布于 2018-02-10 23:49:15
听起来就像万无一失插件分叉的JVM中的内存设置。这些不是从主MAVEN_OPTS继承的,因此需要在pom.xml中直接设置:
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Xmx2g</argLine>
</configuration>
</plugin>
</plugins>
</build>
https://stackoverflow.com/questions/48726626
复制相似问题