Resolve Error “ArtifactTransferException: Could not transfer artifact” or “Failure to Transfer” in Maven

This is very short tips to resolve the errors “ArtifactTransferException: Could not transfer artifact” that may occur in Maven project in Eclipse.

Steps to resolve:

  1. Open folder by running this text (without Quotes) in Search Explorer of Window “%USERPROFILE%.m2”.
  2. After running above command, “m2” folder of maven will open. Now search for file (without Quotes) “*.lastUpdated”.
  3. In this step, delete all the files found by running Step 2.
  4. Now go to Eclipse project and select “Maven | Update Dependency” or “Maven | Update Project”.

By now, your issue will be resolved.

Happy Coding !!!

Related posts

  • Rahul

    Thank you sooo much. I had a tough time to find a solution for this problem. Your solution resolved my problem. I thank you very much for posting this solution.

  • togaurav

    I was struggling with this, your solution worked for me
    thank you very much

  • Sunil

    thanks it solved my problem:-)

  • prashansa

    thanks it resolved my problem

  • prabu

    thanks a million … worked out for me ….thanks you once again….

  • boban

    thanks alot!

  • tienducitt

    tks a lot! it worked for me 🙂

  • Viraj Dhamal

    Thanks Jitendra. Your solution resolved my problem.

  • anand

    Thank you sooo sooo much..:)

  • Venkatesh

    I tried your solution.. I tried to delete updated pom and jar files for only 1, it downloaded the pom and jar again but still eclipse says jar file is missing. It has downloaded.