首页 > Web开发 > 详细

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

时间:2020-03-19 14:53:31      阅读:118      评论:0      收藏:0      [点我收藏+]

url:https://www.pianshen.com/article/8003307916/

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

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下,亲试有效。
如果还是报错:则试试以下方法:

解决办法:

右键工程,选择maven->update project,勾选force update ……

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

原文:https://www.cnblogs.com/zcjyzh/p/12524165.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!