Eclipse 用SpringIDE的Spring Legacy project导入时pom.xml报错
Posted zhyonk
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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报错的主要内容,如果未能解决你的问题,请参考以下文章