首页 > 编程语言 > 详细

Eclipse 用SpringIDE的Spring Legacy project导入时pom.xml报错

时间:2016-12-16 14:17:23      阅读:347      评论:0      收藏:0      [点我收藏+]
Description Resource Path Location Type Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from http://repo1.maven.org/maven2was 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.apache.maven.plugins:maven-compiler-plugin:pom:2.0.2 from/to central 

在stackoverflow上找到了解决办法

需要删除所有下载失败的重新下载

在linux平台可以

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

在window平台可以在命令行下输入

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

项目工程右键->

技术分享

勾选Update dependencies下的Force Update of....按ok

哦了

stackoverflow地址

http://stackoverflow.com/questions/5074063/maven-error-failure-to-transfer

Eclipse 用SpringIDE的Spring Legacy project导入时pom.xml报错

原文:http://www.cnblogs.com/zhyonk/p/6186471.html

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