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 !!!

Posted

in

by

Tags:


Related Posts

Comments

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

  1. Rahul Avatar
    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.

  2. togaurav Avatar
    togaurav

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

  3. Sunil Avatar
    Sunil

    thanks it solved my problem:-)

  4. prashansa Avatar
    prashansa

    thanks it resolved my problem

  5. prabu Avatar
    prabu

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

  6. boban Avatar
    boban

    thanks alot!

  7. tienducitt Avatar
    tienducitt

    tks a lot! it worked for me 🙂

  8. Viraj Dhamal Avatar
    Viraj Dhamal

    Thanks Jitendra. Your solution resolved my problem.

  9. anand Avatar
    anand

    Thank you sooo sooo much..:)

  10. Venkatesh Avatar
    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.

  11. Anup Avatar
    Anup

    Thank you! Worked in one go!

  12. Rizky Soewandi Avatar
    Rizky Soewandi

    thanks for solution

  13. Ankit Mohane Avatar
    Ankit Mohane

    Great solution, thanks

  14. nithin Avatar
    nithin

    thank you so much bro!

  15. Mohit Avatar
    Mohit

    thanks a lot

  16. maddala jagadesh jagadesh Ranganath Avatar
    maddala jagadesh jagadesh Ranganath

    thankyou so much bro

  17. Jeffery Decker Avatar
    Jeffery Decker

    Thanks! worked on my macbook, although I just searched for “.m2” from my user directory instead of %USERPROFILE%

    1. SerAngel Bejar Avatar

      Thank you Jeffery your comment helped me I use ubuntu and I can not find “m2” and do not use %USERPROFILE%.

      1. Narayanan Avatar
        Narayanan

        When I search for *.lastUpdated dont find any files in the mac book. Please let me know did I miss anything here.

  18. Danish Avatar
    Danish

    this is my pom.xml
    =====================

    4.0.0

    org.springframework.boot
    spring-boot-starter-parent
    2.1.9.RELEASE
    <!– lookup parent from repository –>
    ../my-parent

    com.danish
    bike
    0.0.1-SNAPSHOT
    bike
    Bike registration using Spring Boot and Angular JS

    1.8

    org.springframework.boot
    spring-boot-starter-web

    org.springframework.boot
    spring-boot-starter-test
    test

    org.springframework.boot
    spring-boot-maven-plugin

    i Am getting below error.
    ===================

    Project build error: Non-resolvable parent POM for com.danish:bike:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.9.RELEASE from/to central (https://repo.maven.apache.org/maven2): Unrecognized Windows Sockets error: 10106: create and ‘parent.relativePath’ points at wrong local POM

    I performed steps to resolve this issue but could not do–

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

  19. haalim Avatar
    haalim

    how to solve this error in spring tool suite please

  20. phani Avatar
    phani

    But i’m using in CMD format i followed above instructions still the same error

  21. Hempreet Singh Avatar
    Hempreet Singh

    Very good method. I was facing many problems for this. You solved it. Thanks

  22. Malsha Avatar
    Malsha

    Thank you so much.. It worked.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Jitendra Zaa

Subscribe now to keep reading and get access to the full archive.

Continue Reading