Maven 错误“Failure to transfer…”

还是今天,导入一个maven项目的时候遇到“Failure to transfer…”错误。

完整的错误大致如下:

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/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-compiler-plugin:pom:2.0.2 from/to central (http://repo1.maven.org/maven2): No response received after 60000 ExampleProject Unknown Maven Problem

原因:谁能翻译一下上面这段话,我懂,但是写出来好累。算了,自己去查吧。现在好饿。。

解决方法:

cmd进入你的maven库。

如何找你配置的maven库?

Eclipse-----》Windows----------》Peference ------------》Maven------------》User setting


 

一系列cd cd 之后就进入了库咯。(我知道这样很笨。。。)

 

然后运行命令:

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

 

 

回车。

这个就是清除你下载失败的文件的命令。然后再回去刷新一下你的maven项目,就okay咯!!

其实我这个是我再stack overflow上面找到的。看来这个问题很常见。

地址:http://stackoverflow.com/questions/5074063/maven-error-failure-to-transfer 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值