2012-05-23 68 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 - >強制更新快照/釋放 - >確定。

它對我也有效

相關問題