Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ArtifactDescriptorException: Failed to read artifact descriptor Maven error

I am using the latest Eclipse for Java EE with JBoss Tools installed so Maven is included. I imported an existing Maven project to my workspace and tried to update the dependencies but I only get errors error in my POM that some argument is invalid and no artifact could have been transfered. There are actually two different errors and maybe they depend on each other? You can check: the server is available and I also tried to reinstall Eclipse and JBoss. So what else is missing?

ArtifactDescriptorException: Failed to read artifact descriptor for edu.kit.aifb.ai2.sqsclient:sqsclient:jar:1.0.0: ArtifactResolutionException: Failure to transfer edu.kit.aifb.ai2.sqsclient:sqsclient:pom:1.0.0 from http://eorg-ai2.aifb.kit.edu:8081/nexus/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of Beehive has elapsed or updates are forced. Original error: Could not transfer artifact edu.kit.aifb.ai2.sqsclient:sqsclient:pom:1.0.0 from/to Beehive (http://eorg-ai2.aifb.kit.edu:8081/nexus/content/repositories/releases): Invalid argument: getsockname to http://eorg-ai2.aifb.kit.edu:8081/nexus/content/repositories/releases/edu/kit/aifb/ai2/sqsclient/sqsclient/1.0.0/sqsclient-1.0.0.pom

There is indeed nothing in my repository-folder but .pom.lastUpdated-files

Error resolving version for plugin 'org.apache.maven.plugins:maven-shade-plugin' from the repositories [local (C:\Users\Gregor.Gregs.m2\repository), central (http://repo1.maven.org/maven2)]: Plugin not found in any plugin repository

Thank you

like image 249
Gregor Avatar asked May 23 '12 23:05

Gregor


3 Answers

For me it was because Eclipse was caching the exception ( even after I solved the original problem ) so try to:

right click on project -> maven -> update-project -> force to update snapshot/release -> OK.

it worked for me for a similar problem.

like image 175
Saman Abdolmohammadpour Avatar answered Sep 28 '22 00:09

Saman Abdolmohammadpour


right click on project -> maven -> update-project -> force to update snapshot/release -> OK.

it worked for me too

like image 32
user8602974 Avatar answered Sep 27 '22 23:09

user8602974


Check in you eclipse that settings file path is pointing to right one. Window --> Preferences --> Maven--> User Settings.

like image 42
user2818657 Avatar answered Sep 28 '22 01:09

user2818657