IDEA 中使用MAVEN Install 项目的时候 报 org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed

小白一枚,在做springboot的war包打包时,遇到如下异常:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project spring-cloud-eureka-server-cluster: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?

可以看出是 maven-surefire-plugin:2.18.1 插件问题,在网上寻找解决方案如下,因为我没有引入该版本的依赖,所以报错:

<plugin>

  <groupId>org.apache.maven.plugins</groupId>

  <artifactId>maven-surefire-plugin</artifactId>

  <version>2.18.1</version>

  <configuration>

      <skipTests>true</skipTests>

  </configuration>

</plugin>

引入上述依赖后,问题顺利解决!

转载csdn原文:https://blog.csdn.net/xzp_forever/article/details/80648818

推荐阅读更多精彩内容