Maven error “Failure to transfer…”

Maven error “Failure to transfer…”

以下转自StackOverflow( http://stackoverflow.com/questions/5074063/maven-error-failure-to-transfer),亲测可用。


This worked for me in Windows as well.

  1. Locate the {user}/.m2/repository (Using Juno /Win7 here)
  2. In the Search field in upper right of window, type ".lastupdated". Windows will look through all subfolders for these files in the directory. (I did not look through cache.)
  3. Remove them by Right-click > Delete (I kept all of the lastupdated.properties).
  4. 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.

你可能感兴趣的:(Maven error “Failure to transfer…”)