您的位置:首页 > 运维架构 > Apache

Description Resource Path Location Type Failure to transfer org.apache.maven.plugins:maven-surefire-

2017-10-20 01:06 627 查看
maven项目更新老是报错 Description    Resource    Path    Location    Type 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 interva

都把.m2下的仓库清理了n遍,还是不管用,还是佩服老外解决办法:

linux下在终端命令行直接输入 

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

再此更新项目即可

win下输入:

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

更新项目即可

我是在linux下,亲试有效。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Java
相关文章推荐