简体   繁体   English

ArtifactDescriptorException:无法读取工件描述符Maven错误

[英]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. 我正在使用安装了JBoss Tools的最新Eclipse for Java EE,因此包含了Maven。 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. 我将一个现有的Maven项目导入到我的工作区并试图更新依赖项,但我只在POM中得到错误错误,因为某些参数无效且无法传输任何工件。 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. 您可以检查:服务器是否可用,我还尝试重新安装Eclipse和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. ArtifactDescriptorException:无法读取edu.kit.aifb.ai2.sqsclient的工件描述符:sqsclient:jar:1.0.0:ArtifactResolutionException:无法从http传输edu.kit.aifb.ai2.sqsclient:sqsclient:pom:1.0.0 ://eorg-ai2.aifb.kit.edu:8081 / nexus / content / repositories / releases缓存在本地存储库中,在Beehive的更新间隔结束或强制更新之前,不会重新尝试解析。 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 原始错误:无法传输工件edu.kit.aifb.ai2.sqsclient:sqsclient:pom:1.0.0 from / to Beehive( http://eorg-ai2.aifb.kit.edu:8081/nexus/content/repositories / releases ):无效的参数: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 我的repository-folder中确实没有任何内容,只有.pom.lastUpdated文件

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 从存储库[local(C:\\ Users \\ Gregor.Gregs.m2 \\ repository),central( http://repo1.maven )解析插件'org.apache.maven.plugins:maven-shade-plugin'的版本时出错。 org / maven2)] :在任何插件存储库中找不到插件

Thank you 谢谢

For me it was because Eclipse was caching the exception ( even after I solved the original problem ) so try to: 对我来说,这是因为Eclipse正在缓存异常(即使在我解决了原始问题之后),所以试着:

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. 签入eclipse,设置文件路径指向正确的路径。 Window --> Preferences --> Maven--> User Settings. 窗口 - >首选项 - > Maven - >用户设置。

right click on project -> maven -> update-project -> force to update snapshot/release -> OK. 右键单击项目 - > maven - > update-project - >强制更新快照/发布 - >确定。

it worked for me too 它也适合我

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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