• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
What's wrong?
博客园    首页    新随笔    联系   管理    订阅  订阅

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 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.12.4 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.

原因可能是下载文件错误

解决方法:

1.找到maven本地仓库,目录:C:\Users\Administrator\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.12.4

2.对比maven远程仓库,地址:https://repo.maven.apache.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.pom及其对应的sha1文件

3.删除文件maven-surefire-plugin-2.12.4.pom.lastUpdated

4.刷新项目或者右键-->maven-->Update Dependencies

posted @ 2018-04-25 19:48  Wrong  阅读(4411)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3