junit4 - Surefire 2.22.0:java.lang.IllegalStateException:错误 [STOPPED] 读取进程
问题描述
When i execute unit tests i get this error from surefire plugin
am using maven-surefire-plugin, jacoco plugin and junit 4.12. This is the plugins from my pom :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<skipTests>${skipTests}</skipTests>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>2.21.0</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.7.201606060606</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
# Created at 2020-10-28T17:58:53.813
System.exit() 或本机命令错误中断进程检查器。java.lang.IllegalStateException:错误 [STOPPED] 在 org.apache.maven.surefire.booter.PpidChecker.isProcessAlive( PpidChecker.java:116) 在 org.apache.maven.surefire.booter.ForkedBooter$2.run(ForkedBooter.java:213) 在 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 在 java。 util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)在 java.lang.Thread.run(Thread.java:748)
解决方案
推荐阅读
- android - 使用 InputStream 进行 Moshi 解析
- r - 拆分字符串以提取日期和时间
- sql - 如何在 Excel 中使用 SQL 连接获取日期范围提示
- python - 如何在不关闭浏览器的情况下处理旧 URL 后将浏览器重定向到 Robotframework 中的新 URL
- python - 以特定方式重塑熊猫数据框
- vba - 将我的 MS Access 报告数据导出到 Adobe Acrobat DC pdf 时出现问题
- oracle - 提取连续两天或更长时间出现的记录
- docker - 评估 Kubernetes 中 Docker 的安全性(+Rancher)
- android - [Cordova][Android] 在发布版本上运行时套接字未连接
- sql - 如何在有条件的情况下将记录从另一个表插入到一个表中