我正在使用Eclipse Oxygen,我已经安装了Nexus OSS Repository Manager。在Window-> Preferences-> Maven我已经检查了启动时下载存储库索引更新。
在启动时,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 Indexer作为目录时,我收到错误消息: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( 180 B)和chunks.lst(0B)。没有nexus-maven-repository-index.zip。
我在Stackoverlow上搜索了解决方案,尝试了很多东西,在这个问题上做了一些改进(比现在更糟糕)但是没有解决它。
答案 0 :(得分:1)
日志消息具有误导性。如果其他索引文件无法下载,Nexus将尝试下载该文件。如果它无法下载.gz文件,你会看到该行。