首页 > 代码库 > Eclipse 用SpringIDE的Spring Legacy project导入时pom.xml报错
Eclipse 用SpringIDE的Spring Legacy project导入时pom.xml报错
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报错
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。