Eclipse导入项目Maven error “Failure to transfer…”

来源:互联网 发布:linux查看当前shell 编辑:程序博客网 时间:2024/06/15 02:45

导入Maven项目时报错:

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/maven2 was 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

解决方案:

For windows:

cd %userprofile%\.m2\repositoryfor /r %i in (*.lastUpdated) do del %i

Then go back into Eclipse, Right-click on the project and select Maven > Update Project. I selected to “Force Update of Snapshots/Releases”. Click Ok and the dependencies finally resolved correctly.

0 0
原创粉丝点击