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 插件问题,在网上寻找解决方案如下,因为我没有引入该版本的依赖,所以报错:

  org.apache.maven.plugins

  maven-surefire-plugin

  2.18.1

 

      true

 

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

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

你可能感兴趣的:(IDEA 中使用MAVEN Install 项目的时候 报 org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed)