码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2016-12-16 14:20:11      阅读:417      评论:0      收藏:0      [点我收藏+]

标签:pos   cat   compiler   maven2   linux   分享   解决办法   err   导入   

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报错

标签:pos   cat   compiler   maven2   linux   分享   解决办法   err   导入   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!