为什么 Eclipse 在尝试更新 Nexus 索引器时.zip寻找 nexus-maven-repository-in



我正在使用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/: .m2repository.cachem2e1.8.033b5073b9c3fc53d62eb8dc83e442c3dnexus-maven-repository-index.zip (The system cannot find the file specified)
!STACK 0
java.io.FileNotFoundException: .m2repository.cachem2e1.8.033b5073b9c3fc53d62eb8dc83e442c3dnexus-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 (180 B( 和 chunks.lst (0B(。No nexus-maven-repository-index.zip.

我已经在 Stackoverlow 上寻找解决方案,尝试了很多东西,对这个问题进行了一些改进(甚至比现在更糟(,但没有解决它。

日志消息具有误导性。 如果其他索引文件无法下载,Nexus将尝试下载该文件。 因此,如果无法下载.gz文件,您将看到该行。

最新更新