Skip to content

Instantly share code, notes, and snippets.

@ToanPV90
Created August 8, 2016 09:52
Show Gist options
  • Save ToanPV90/75a8b0b11d0329a6e418eaf5ce4379f8 to your computer and use it in GitHub Desktop.
Save ToanPV90/75a8b0b11d0329a6e418eaf5ce4379f8 to your computer and use it in GitHub Desktop.
Maven error “Failure to transfer…”
Info:
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
---------------------------------------------------Answer---------------------------------------------------
Remove all your failed downloads:
For *nix
find ~/.m2 -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;
For windows:
cd %userprofile%\.m2\repository
for /r %i in (*.lastUpdated) do del %i
Then rightclick on your project in eclipse and choose Maven->"Update Project ...", make sure "Update Dependencies" is checked in the resulting dialog and click OK.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment