Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4

Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://uk.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of UK has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from/to UK (http://uk.maven.org/maven2): The operation was cancelled.

一般情况下可能是文件格式有问题,将正确的文件内容替换掉错误的文件内容,不断地尝试,直到文件不报错,当然也有可能是下面的原因:下面是2.7.1版本的方法,其他类似)

或者是:进入该jar包指示的路径,删除.lastUpdated文件,然后项目右键-->maven-->Update Dependencies

或者:

1.找到maven库目录,进入:~\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.7.1

2.若2.7.1目录下只有,"maven-surefire-plugin-2.7.1.pom.lastUpdated" 则需要到http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.7.1/,把里面的文件下载下来放到2.7.1

3.删除2.7.1下的maven-surefire-plugin-2.7.1.pom.lastUpdated文件。

4.项目右键-->maven-->Update Dependencies

最新文章

  1. 第一章 Shiro简介——《跟我学Shiro》(转)
  2. 隐藏进程中的模块绕过IceSword的检测
  3. wlan-mcs来自百度百科
  4. TabHost的使用
  5. WCF服务显示的是服务器名称而不是IP地址...
  6. Oracle sysdate 时间加减
  7. WCF错误:413 Request Entity Too Large
  8. 【UML】类图的几种关系总结
  9. 解决Oracle 11g在用EXP导出时,空表不能导出
  10. HDU 1875 畅通工程再续 (最小生成树)
  11. C#_模拟webAp_POST-GET-PUT-DELETE
  12. Windows 7 IE11 F12 不能正常使用
  13. js私有化属性
  14. [ gczdac ] 20190306 访者必阅
  15. OutOfMemoryError/OOM/内存溢出异常实例分析--堆内存溢出
  16. 20155219付颖卓 Exp3 免杀原理与实践
  17. 关于iOS刷新UI需要在主线程执行
  18. 19-matlab知识点复习二
  19. Navicat for MySQL 安装和破解(完美)
  20. leetcode492

热门文章

  1. 洛谷 [TJOI2010]中位数
  2. UVA - 10589 构造最优化函数 DP好题
  3. 认识HTML中文本、图片、链接标签和路径
  4. Zabbix触发器函数之count函数
  5. google风格
  6. ActiveMQ的单节点和集群部署
  7. 用 fmt格式化候时间
  8. CentOS 6.7 安装配置 nagios-server
  9. 解决dns服务器未找到问题 &&DNS解析服务器&&连接问题
  10. Yii 自带的分页实例