maven 项目配置文件报错:
ailure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.18.1 from https://repo.maven.apache.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. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.18.1 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.
解决思路:
根据信息提示 插件已经下载到本地仓库,导致更新冲突
找到本地仓库 插件的目录:
发现maven-surefire-plugin.pom.lastUpdated
删除此文件,对报错项目maven ->update
maven 插件报错解决。
参考资料:http://blog.sina.com.cn/s/blog_90aad2c90101lce4.ht
转载于:https://my.oschina.net/PagodaTree/blog/881694