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
时间: 2024-10-30 22:23:17