2012-05-23 69 views
8

我正在使用最新的Eclipse for Java EE,并安装了JBoss Tools以便包含Maven。我将一个现有的Maven项目导入到我的工作区,并尝试更新依赖项,但是我的POM中只有错误错误,表明某些参数无效,并且没有任何工件可能已被传输。 实际上有两个不同的错误,也许他们互相依赖? 您可以检查:服务器可用,我也尝试重新安装Eclipse和JBoss。那么还有什么缺失?ArtifactDescriptorException:无法读取工件描述符Maven错误

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-文件

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

谢谢

+0

nexus服务器是否正常运行并且代理中央和其他存储库?如果是这样,你可以在删除.pom.lastUpdated文件后重试吗? – Raghuram

+0

是的,服务器和整个项目一样好 - 它适用于其他人。我还把他们的存储库粘贴到我的文件夹中,并让项目运行。所以Maven应该没问题。 难道我的电脑名称有问题吗?因为它有一个点?刚刚在第二个错误的错误报告中看到了反斜杠丢失。但是,因为有.pom.lastUpdated文件,它应该没关系..? (我也有他们删除,.pom.lastUpdated文件以及我的缓存) – temmink

回答

18

对我来说,这是因为Eclipse是即使我缓存异常(解决了原来的问题)所以尝试:

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

它为我工作的类似p roblem。

2

在eclipse中检查设置文件路径是否指向正确的一个。 窗口 - >首选项 - > Maven - >用户设置。

1

右键单击项目 - > maven - > update-project - >强制更新快照/释放 - >确定。

它对我也有效

相关问题