[Java] Maven 更新错误导致Eclipse无法Build,信息 Failed to transfer ... cache ...expired

博客首页 » Java Maven 更新错误导致Eclipse无法Build,信息 Failed to transfer … cache …expired

发布于 23 Sep 2014 00:04
标签 blog
Java开发中碰到 Maven 更新错误导致Eclipse无法Build,信息 Failed to transfer … cache …expired

解决办法是删除所有的失败的下载:

Linux:

find ~/.m2 -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;

Windows:

cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i

接着运行maven或者在eclipse的项目点右键选Maven->Update Dependencies。


本页面的文字允许在知识共享 署名-相同方式共享 3.0协议和GNU自由文档许可证下修改和再使用,仅有一个特殊要求,请用链接方式注明文章引用出处及作者。请协助维护作者合法权益。


系列文章

文章列表

  • Java Maven 更新错误导致Eclipse无法Build,信息 Failed to transfer … cache …expired

这篇文章对你有帮助吗,投个票吧?

rating: 0+x

留下你的评论

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License