查看引用
~.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.12.4
会发现里面只有一个maven-surefire-plugin-2.12.4.pom.lastUpdated的文件.而并没有maven-surefire-plugin-2.12.4.jar
解决办法
1.删除所有以lastUpdated结尾的文件 2.右键点击project -> Maven - Update Dependencies(Update Project...)
如果点击更新后发现
~.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.12.4
下还是没有maven-surefire-plugin-2.12.4.jar 去http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.12.4/
下载
maven-surefire-plugin-2.12.4.jar maven-surefire-plugin-2.12.4.jar.sha1 maven-surefire-plugin-2.12.4.pom maven-surefire-plugin-2.12.4.pom.sha1