异常处理1:Failure to transfer org.apache.maven.plugins
博客专区 > lisn 的博客 > 博客详情
异常处理1:Failure to transfer org.apache.maven.plugins
lisn 发表于1年前
异常处理1:Failure to transfer org.apache.maven.plugins
  • 发表于 1年前
  • 阅读 68
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 技术升级10大核心产品年终让利>>>   

摘要: Description Resource Path Location Type Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from http://repo1.maven.org/maven2was cached in the local repository, resolution will not be reattempted until the update interval of central has elaps

错误起因:创建maven项目后,F5更新项目过程中手工中断导致等等

报错信息

Description Resource Path Location Type Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from http://repo1.maven.org/maven2was 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-compiler-plugin:pom:2.0.2 from/to central (http://repo1.maven.org/maven2): No response received after 60000 ExampleProject Unknown Maven Problem

解决方式

cmd进入命令行

cd %userprofile%\.m2\repository

for /r %i in (*.lastUpdated) do del %i

然后在eclipse 右键项目-->Maven-->Update Project ... -->force update... 勾选 然后点击确定

总结:

maven 的local repository 有问题,需要删除重新加载。

标签: java maven
共有 人打赏支持
粉丝 2
博文 36
码字总数 20700
×
lisn
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: