首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >派生的VM在没有正确说再见的情况下终止。虚拟机崩溃或System.exit被调用

派生的VM在没有正确说再见的情况下终止。虚拟机崩溃或System.exit被调用
EN

Stack Overflow用户
提问于 2014-04-24 12:47:31
回答 61查看 253.8K关注 0票数 270

请帮我解决这个问题。我不完全理解日志中的错误是什么意思。

代码语言:javascript
复制
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.749s
[INFO] Finished at: Thu Apr 24 10:10:20 IST 2014
[INFO] Final Memory: 15M/37M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project samples.simpleforwarding: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
[ERROR] Command wascmd.exe /X /C ""C:\Program Files\Java\jdk1.7.0_55\jre\bin\java" -Xmx1024m -XX:MaxPermSize=256m -jar E:\OpenDayLight\controller\opendaylight\samples\simpleforwarding\target\surefire\surefirebooter53410321571238933.jar E:\OpenDayLight\controller\opendaylight\samples\simpleforwarding\target\surefire\surefire86076271125218001tmp E:\OpenDayLight\controller\opendaylight\samples\simpleforwarding\target\surefire\surefire_01846991116135903536tmp"
[ERROR] -> [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/PluginExecutionException
EN

回答 61

Stack Overflow用户

发布于 2015-11-17 21:12:59

我遇到了同样的问题,并通过添加以下内容解决了这个问题:

代码语言:javascript
复制
<argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>

整个插件元素是:

代码语言:javascript
复制
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <configuration>
    <forkCount>3</forkCount>
    <reuseForks>true</reuseForks>
    <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
  </configuration>
</plugin>
票数 179
EN

Stack Overflow用户

发布于 2018-08-27 14:41:43

在我的例子中,这个问题与输出到IntelliJ IDEA控制台(OS Windows10)的日志太长有关。

命令:

代码语言:javascript
复制
mvn clean install

这个命令解决了我的问题:

代码语言:javascript
复制
mvn clean install > log-file.log
票数 142
EN

Stack Overflow用户

发布于 2018-06-29 18:33:27

我有非常类似的问题(Maven build and maven-failsafe-plugin - The forked VM terminated without properly saying goodbye),并找到了三个对我有效的解决方案:

问题描述

问题出在maven插件maven-surefire-plugin仅在2.20.1和2.21.0版本中。我检查过了,您使用的是2.20.1版。

解决方案1

将插件版本升级到2.22.0。在pom.xml中添加

代码语言:javascript
复制
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.22.0</version>
</plugin>

解决方案2

将插件版本降级到2.20。在pom.xml中添加

代码语言:javascript
复制
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.20</version>
</plugin>

解决方案3

使用插件配置testFailureIgnore.在pom.xml中添加

代码语言:javascript
复制
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <configuration>
    <testFailureIgnore>true</testFailureIgnore>
  </configuration>
</plugin>
票数 47
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23260057

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档