2017-07-04 32 views
0

我使用Eclipse Oxygen,並且已經安裝了Nexus OSS Repository Manager。在窗口 - >首選項 - > Maven我已經檢查在啓動時下載存儲庫索引更新。爲什麼Eclipse在嘗試更新Nexus索引器時尋找nexus-maven-repository-index.zip?

啓動時Eclipse正在嘗試更新Nexus的索引,並且需要一段時間。但在此之後,我收到一個錯誤,指出它無法更新nexus的索引。

從日誌我提取相關線路:

!ENTRY org.eclipse.m2e.logback.appender 4 0 2017-07-04 10:55:22.312 
!MESSAGE Unable to update index for nexus|http://localhost:8081/nexus/content/groups/public/: .m2\repository\.cache\m2e\1.8.0\33b5073b9c3fc53d62eb8dc83e442c3d\nexus-maven-repository-index.zip (The system cannot find the file specified) 
!STACK 0 
java.io.FileNotFoundException: .m2\repository\.cache\m2e\1.8.0\33b5073b9c3fc53d62eb8dc83e442c3d\nexus-maven-repository-index.zip (The system cannot find the file specified)... 

當我嘗試啓動新的Maven項目,並選擇的Nexus索引的目錄我收到錯誤消息:No archetypes currently available. The archetype list will refresh when the indexes finish updating.

我感興趣爲什麼Eclipse會尋找nexus-maven-repository-index.zip而不是nexus-maven-repository-index.gz?

在文件夾中.m2 \ repository.cache \ m2e \ 1.8.0 \ 33b5073b9c3fc53d62eb8dc83e442c3d \我有三個文件:nexus-maven-repository-index.gz(360 MB),nexus-maven-repository-index.properties (180B)和chunks.lst(0B)。沒有nexus-maven-repository-index.zip。

我在Stackoverlow上搜索瞭解決方案,嘗試了很多東西,在這個問題上做了一些改進(這比現在更糟糕),但沒有解決它。

回答

0

日誌消息具有誤導性。如果其他索引文件無法下載,Nexus將嘗試下載該文件。所以如果它不能下載.gz文件,你會看到該行。

相關問題