问题描述
我在 jenkins 上编译我的项目时遇到了这个问题(如果并发构建正在进行,这个问题不会系统地发生,而是随机发生)
2021-02-11T15-48-46_886-jvmrun1 surefire4707914008439443625tmp surefire_49768088724336621954tmp
17:04:16 [ERROR] Error occurred in starting fork,check output in log
17:04:16 [ERROR] Process Exit Code: 137
17:04:16 [ERROR] Crashed tests:
我尝试使用 forkmode none 配置我的 surefire 插件并且所有工作都正常,但是通过这种配置,我失去了对声纳的覆盖。所以这是不可接受的。
有人可以遇到同样的问题并找到解决方案吗?
我使用 java11 和 :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.21.0</version>
<configuration>
<systemPropertyVariables>
<jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
</systemPropertyVariables>
</configuration>
</plugin>
我看到最后一个万无一失的版本是 2.22.2,但我现在无法更新,我认为这不是问题?
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)