小白一枚,在做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 插件問題,在網(wǎng)上尋找解決方案如下,因為我沒有引入該版本的依賴,所以報錯:
<plugin>
? <groupId>org.apache.maven.plugins</groupId>
? <artifactId>maven-surefire-plugin</artifactId>
? <version>2.18.1</version>
? <configuration>
? ? ? <skipTests>true</skipTests>
? </configuration>
</plugin>
引入上述依賴后,問題順利解決!
轉(zhuǎn)載csdn原文:https://blog.csdn.net/xzp_forever/article/details/80648818