如图所示
解决办法,降低版本
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.20</version> </plugin>
最后成功
mvn clean 之后 install Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test
原文:https://www.cnblogs.com/YC-L/p/14299944.html