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:
- 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”.
By now, your issue will be resolved.
Happy Coding !!!
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.
I was struggling with this, your solution worked for me
thank you very much
thanks it solved my problem:-)
thanks it resolved my problem
thanks a million … worked out for me ….thanks you once again….
thanks alot!
tks a lot! it worked for me 🙂
Thanks Jitendra. Your solution resolved my problem.
Thank you sooo sooo much..:)
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.
Thank you! Worked in one go!
thanks for solution
Great solution, thanks
thank you so much bro!
thanks a lot
thankyou so much bro
Thanks! worked on my macbook, although I just searched for “.m2” from my user directory instead of %USERPROFILE%
Thank you Jeffery your comment helped me I use ubuntu and I can not find “m2” and do not use %USERPROFILE%.
When I search for *.lastUpdated dont find any files in the mac book. Please let me know did I miss anything here.
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”.
how to solve this error in spring tool suite please
But i’m using in CMD format i followed above instructions still the same error
Very good method. I was facing many problems for this. You solved it. Thanks
Thank you so much.. It worked.