maven项目pom.xml报错:Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the
update interval of central has elapsed or updates are forced原因是maven的plugin并未下载到本地.打开maven的本地库mvn-repository\org\apache\maven\plugins\maven-surefire-plugin\2.12.4会发现:里面只有一个2.12.4的文件
1.删除maven-surefire-plugin-2.12.4文件
2.右键点击项目 -> Maven - Update Dependencies