Failure to transfer org.codehaus.plexus:plexus-interpolation:jar:1.15

来源:互联网 发布:宁泽涛傅园慧cp乐乎 编辑:程序博客网 时间:2024/05/20 09:43

eclipse maven项目错误:Failure to transfer org.codehaus.plexus:plexus-interpolation:jar:1.15 from http://repo.maven.apache.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.codehaus.plexus:plexus-interpolation:jar:1.15 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled.pom.xml


解决办法:删除掉下载失败的jar

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->Update Project...

然后勾选Force Update of Snapshots/Releases

在单机ok即可


阅读全文
0 0
原创粉丝点击