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

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

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

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

  4. 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”.

Leave a Reply

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