简体   繁体   中英

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

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.

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

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

it worked for me too

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM