错误起因:创建maven项目后,F5更新项目过程中手工中断导致等等
报错信息:
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 (http://repo1.maven.org/maven2): No response received after 60000 ExampleProject Unknown Maven Problem
解决方式:
cmd进入命令行
cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i
然后在eclipse 右键项目-->Maven-->Update Project ... -->force update... 勾选 然后点击确定
总结:
maven 的local repository 有问题,需要删除重新加载。