I am trying to set up a project using Maven (m2eclipse), but I get this error in Eclipse:
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
Any ideas? It would be helpful if you could show me how to check if everything is configured fine...
settings.xml for proxy? and in eclipse there are maven global\local profile, add the settings.xml
Try to execute
or Run > Maven Clean and Maven > Update snapshots from project context menu in eclipse
I had a similar issue with only a few projects in my workspace. Other projects with nearly identical POMs didn't have an error at all. None of the other answers listed fixed my problem. I finally stumbled upon removing/re-applying the Maven nature for each project and the errors disappeared:
For each project that has a pom with the "resolution will not be reattempted..." error:
For me I just added the bellow xml code in the POM.xml file. And after I dit **right click in the project -> Maven -> Update Project and I checked Force Update of Snapshots/Releases ** and every thing worked
This worked for me in Windows:
{user}/.m2/repository
.lastupdated
". Windows will look through all subfolders for these files in the directory..lastupdated
files.Maven > Update Project
.Force Update of Snapshots/Releases
".