我正在使用最新的 Eclipse for Java EE,并安装了 JBoss Tools,因此包含 Maven。我将现有的 Maven 项目导入到我的工作区并尝试更新依赖项,但我的 POM 中只收到错误消息,指出某些参数无效并且无法传输任何 Artifact 。 实际上有两个不同的错误,也许它们相互依赖? 您可以检查:服务器可用,我也尝试重新安装 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/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
我的存储库文件夹中确实除了 .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
谢谢
最佳答案
对我来说,这是因为 Eclipse 正在缓存异常(即使在我解决了原始问题之后),所以尝试:
right click on project -> maven -> update-project -> force to update snapshot/release -> OK.
它对我解决类似的问题很有用。
关于eclipse - ArtifactDescriptorException : Failed to read artifact descriptor Maven error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10729394/