如何解决Surefire 2.22.0:java.lang.IllegalStateException:读取进程错误[已停止]
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:错误[已停止]读取进程8076 在org.apache.maven.surefire.booter.PpidChecker.checkProcessInfo(PpidChecker.java:145) 在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)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。