eclipse ArtifactDescriptorException:无法读取工件描述符 Maven 错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10729394/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ArtifactDescriptorException: Failed to read artifact descriptor Maven error
提问by temmink
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?
我正在使用最新的 Java EE Eclipse 并安装了 JBoss 工具,因此包含了 Maven。我将一个现有的 Maven 项目导入到我的工作区并尝试更新依赖项,但我只在 POM 中收到错误错误,即某些参数无效并且无法传输任何工件。实际上有两个不同的错误,也许它们相互依赖?您可以检查:服务器可用,我也尝试重新安装 Eclipse 和 JBoss。那么还缺少什么?
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/releaseswas 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
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 的更新间隔已过或强制更新,才会重新尝试解析。原始错误:无法将工件 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
我的存储库文件夹中确实没有任何内容,但 .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
从存储库 [local (C:\Users\Gregor.Gregs.m2\repository)、中央 ( http://repo1.maven. org/maven2)]: 在任何插件库中都找不到插件
Thank you
谢谢
回答by Saman Abdolmohammadpour
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.
它为我解决了类似的问题。
回答by user2818657
Check in you eclipse that settings file path is pointing to right one. Window --> Preferences --> Maven--> User Settings.
在 eclipse 中检查设置文件路径指向正确的路径。窗口 --> 首选项 --> Maven --> 用户设置。
回答by user8602974
right click on project -> maven -> update-project -> force to update snapshot/release -> OK.
右键单击项目 -> maven -> 更新项目 -> 强制更新快照/发布 -> 确定。
it worked for me too
它也对我有用