解决eclipse中maven出现的Failure to transfer XXX.jar的问题

这个问题很烦,试了好几次都没有彻底解决,今天终于找到解决办法了。

问题主要出在,maven在下载jar的过程中出现了中断或者错误问题(不仅仅是eclipse,其他IDE也一样)

解决办法:

  移除之前的错误下载!

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

更新项目:

解决eclipse中maven出现的Failure to transfer XXX.jar的问题

解决eclipse中maven出现的Failure to transfer XXX.jar的问题

注意,请确保以上maven目录与你的目录是对应的

  

上一篇:PHP常见数组方法和函数


下一篇:PostgreSQL控制文件讲解及案例