2017-07-04 76 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文件,你会看到该行。

相关问题