为什么 Eclipse 在尝试更新 Nexus 索引器时寻找 nexus-maven-repository-index.zip?
Why is Eclipse looking for nexus-maven-repository-index.zip when trying to update Nexus indexer?
我正在使用 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.8.0b5073b9c3fc53d62eb8dc83e442c3d\nexus-maven-repository-index.zip (The system cannot find the file specified)
!STACK 0
java.io.FileNotFoundException: .m2\repository\.cache\m2e.8.0b5073b9c3fc53d62eb8dc83e442c3d\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.8.0b5073b9c3fc53d62eb8dc83e442c3d\ 我有三个文件:nexus-maven-repository-index.gz (360 MB), nexus-maven-repository-index.properties (180 B) 和 chunks.lst (0B)。没有 nexus-maven-repository-index.zip.
我在Stackoverlow上搜索了解决方案,尝试了很多东西,对这个问题做了一些改进(比现在更糟糕),但没有解决。
日志消息具有误导性。如果其他索引文件无法下载,Nexus 将尝试下载该文件。因此,如果它无法下载 .gz 文件,您将看到该行。
我正在使用 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.8.0b5073b9c3fc53d62eb8dc83e442c3d\nexus-maven-repository-index.zip (The system cannot find the file specified)
!STACK 0
java.io.FileNotFoundException: .m2\repository\.cache\m2e.8.0b5073b9c3fc53d62eb8dc83e442c3d\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.8.0b5073b9c3fc53d62eb8dc83e442c3d\ 我有三个文件:nexus-maven-repository-index.gz (360 MB), nexus-maven-repository-index.properties (180 B) 和 chunks.lst (0B)。没有 nexus-maven-repository-index.zip.
我在Stackoverlow上搜索了解决方案,尝试了很多东西,对这个问题做了一些改进(比现在更糟糕),但没有解决。
日志消息具有误导性。如果其他索引文件无法下载,Nexus 将尝试下载该文件。因此,如果它无法下载 .gz 文件,您将看到该行。