问题标签 [maven-indexer]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
3464 浏览

maven - Maven 工件存储库的索引是如何工作的

我想了解像 Nexus 和 Artifactory 这样的工件存储库的索引是如何工作的。它提供什么好处?我的意思是——它有什么帮助,解决工件时使用的逻辑是什么?

我的理解是 Lucene 索引包含有关给定代理存储库或组中存在哪些工件的信息,一旦下载了这些索引,您可以轻松检查远程存储库是否包含您正在寻找的工件,您可以尝试从拥有它的存储库中解决它。这是唯一的用途吗?是否还查询索引以获取本地分辨率(因为每个存储库都有一个索引)......?这实际上是如何工作的?

0 投票
0 回答
31 浏览

maven - maven-indexer 忽略战争文件

我正在使用 BasicUsageExample 从 Nexus 存储库中检索所有工件:

https://github.com/apache/maven-indexer/blob/master/indexer-examples/indexer-examples-basic/src/main/java/org/apache/maven/indexer/examples/BasicUsageExample.java

问题是,我特别在寻找战争文件,但这些似乎被忽略了。谁能告诉我如何接收?

0 投票
1 回答
216 浏览

maven - 如何更新 SpringSource 存储库的 Nexus 索引

我向我的 Nexus 实例添加了两个 SpringSource 存储库

  1. http://repository.springsource.com/maven/bundles/release
  2. http://repository.springsource.com/maven/bundles/external

配置看起来不错,但我注意到索引始终为空。因此,无法解决此存储库中工件的依赖关系。

我可以使用Browse Remote导航到工件。所以我需要的工件在存储库中但没有索引,这似乎没有用。

此外,当我在 Nexus 中使用搜索时,我找不到工件。

为什么这些存储库没有索引?

应该如何使用这些存储库?

0 投票
1 回答
371 浏览

maven - Sonatype Nexus 无法索引 IBM Maven 存储库

我们正在尝试代理我们公司内部 Sonatype Nexus 上的 IBM Maven 存储库。我们添加了存储库地址,但即使在直接请求下也没有填充存储库。

Sonatype nexus 的“浏览索引”选项卡为空,而“浏览远程”正确显示库树。但是当向项目的 pom.xml 文件添加依赖项时,IDE 说它找不到原型和工件。

IBM 存储库是否已编入索引?我们缺少什么吗?我们正在使用 IBM RAD 9.5 和 Sonatype Nexus™ 2.11.4-01

0 投票
1 回答
5312 浏览

maven - What is in the packed Maven index (nexus-maven-repository-index.gz)?

Where can I find some more details on what is contained in a Maven repository's Maven Index? Where can one find more details on how this all works? I am somewhat familiar with the maven-indexer, but I still have some grey spots...

What is the difference between the unpacked and packed indexes?

Does a Maven proxy repository have just the remote's index, or does it also keep an index of what artifacts it currently has cached locally?

A thorough and sufficiently lengthy reply would be highly appreciated, as I'm researching the topic and there's, unfortunately, little documentation about it.

0 投票
2 回答
203 浏览

maven - 一组的两个 Nexus 存储库中的 1.0.0-SNAPSHOT

假设我在 Nexus 中有一个“公共”组,其中包含两个存储库“snapshotsA”和“snapshotsB”。两者都包含具有相同 Maven 坐标的版本,例如com.something:artifact:1.0.0-SNAPSHOT. Nexus 如何解析 SNAPSHOT 引用?它是否会查看两个存储库以找到最新的元素?还是找到第一个就满足了?

0 投票
1 回答
1017 浏览

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

我正在使用 Eclipse Oxygen,并且我已经安装了 Nexus OSS Repository Manager。在 Window->Preferences->Maven 我检查了启动时下载存储库索引更新。

在启动时 Eclipse 正在尝试更新 Nexus 的索引,这需要一段时间。但在那之后我收到一个错误,说它无法更新关系索引。

从日志中我提取相关行:

当我尝试启动新的 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 上搜索过解决方案,尝试了很多东西,对这个问题做了一些改进(比现在更糟),但没有解决。