Sonatype Nexus 持有 tar 和 war 具有相同 Maven 坐标的工件未在 lucene 搜索中列出 api
Sonatype Nexus holding tar and war artifact with same maven coordinates not listed in the lucene search api
我正在使用 Sonatype Nexus V2.14.4 作为我的工件存储库。我们使用 lucene 搜索端点来拉取 Nexus 上可用的版本列表。
http://nexusurl/service/local/lucene/search?a=abc&repositoryId=releases
我们有一个场景,其中一个项目发布了 2 个具有相同 artifactid/groupid/version 但不同类型的工件,war 和 tar.gz。当我使用上面的 url 进行搜索时,未列出 war 文件。
<searchNGResponse>
<totalCount>5</totalCount>
<from>-1</from>
<count>-1</count>
<tooManyResults>false</tooManyResults>
<collapsed>false</collapsed>
<repoDetails>
<org.sonatype.nexus.rest.model.NexusNGRepositoryDetail>
<repositoryId>releases</repositoryId>
<repositoryName>Releases</repositoryName>
<repositoryContentClass>maven2</repositoryContentClass>
<repositoryKind>hosted</repositoryKind>
<repositoryPolicy>RELEASE</repositoryPolicy>
<repositoryURL>
http://nexusurl/service/local/repositories/releases
</repositoryURL>
</org.sonatype.nexus.rest.model.NexusNGRepositoryDetail>
</repoDetails>
<data>
<artifact>
<groupId>com.abc</groupId>
<artifactId>abc</artifactId>
<version>10.2.1</version>
<latestRelease>10.2.1</latestRelease>
<latestReleaseRepositoryId>releases</latestReleaseRepositoryId>
<artifactHits>
<artifactHit>
<repositoryId>releases</repositoryId>
<artifactLinks>
<artifactLink>
<extension>pom</extension>
</artifactLink>
<artifactLink>
<extension>tar.gz</extension>
</artifactLink>
</artifactLinks>
</artifactHit>
</artifactHits>
</artifact>
<artifact>
<groupId>com.abc</groupId>
<artifactId>abc</artifactId>
<version>2.1</version>
<latestRelease>10.2.1</latestRelease>
<latestReleaseRepositoryId>releases</latestReleaseRepositoryId>
<artifactHits>
<artifactHit>
<repositoryId>releases</repositoryId>
<artifactLinks>
<artifactLink>
<extension>pom</extension>
</artifactLink>
<artifactLink>
<extension>tar.gz</extension>
</artifactLink>
</artifactLinks>
</artifactHit>
</artifactHits>
</artifact>
<artifact>
<groupId>com.abc</groupId>
<artifactId>abc</artifactId>
<version>1.2</version>
<latestRelease>10.2.1</latestRelease>
<latestReleaseRepositoryId>releases</latestReleaseRepositoryId>
<artifactHits>
<artifactHit>
<repositoryId>releases</repositoryId>
<artifactLinks>
<artifactLink>
<extension>pom</extension>
</artifactLink>
<artifactLink>
<extension>tar.gz</extension>
</artifactLink>
</artifactLinks>
</artifactHit>
</artifactHits>
</artifact>
<artifact>
<groupId>com.abc</groupId>
<artifactId>abc</artifactId>
<version>1.1</version>
<latestRelease>10.2.1</latestRelease>
<latestReleaseRepositoryId>releases</latestReleaseRepositoryId>
<artifactHits>
<artifactHit>
<repositoryId>releases</repositoryId>
<artifactLinks>
<artifactLink>
<extension>pom</extension>
</artifactLink>
<artifactLink>
<extension>tar.gz</extension>
</artifactLink>
</artifactLinks>
</artifactHit>
</artifactHits>
</artifact>
<artifact>
<groupId>com.abc</groupId>
<artifactId>abc</artifactId>
<version>1.0</version>
<latestRelease>10.2.1</latestRelease>
<latestReleaseRepositoryId>releases</latestReleaseRepositoryId>
<artifactHits>
<artifactHit>
<repositoryId>releases</repositoryId>
<artifactLinks>
<artifactLink>
<extension>pom</extension>
</artifactLink>
<artifactLink>
<extension>tar.gz</extension>
</artifactLink>
</artifactLinks>
</artifactHit>
</artifactHits>
</artifact>
</data>
</searchNGResponse>
这是 nexus 搜索的错误吗api?
看这里:
请注意,以上限制适用于 Nexus 2.x。 Nexus 3.x 没有这个限制。
我正在使用 Sonatype Nexus V2.14.4 作为我的工件存储库。我们使用 lucene 搜索端点来拉取 Nexus 上可用的版本列表。
http://nexusurl/service/local/lucene/search?a=abc&repositoryId=releases
我们有一个场景,其中一个项目发布了 2 个具有相同 artifactid/groupid/version 但不同类型的工件,war 和 tar.gz。当我使用上面的 url 进行搜索时,未列出 war 文件。
<searchNGResponse>
<totalCount>5</totalCount>
<from>-1</from>
<count>-1</count>
<tooManyResults>false</tooManyResults>
<collapsed>false</collapsed>
<repoDetails>
<org.sonatype.nexus.rest.model.NexusNGRepositoryDetail>
<repositoryId>releases</repositoryId>
<repositoryName>Releases</repositoryName>
<repositoryContentClass>maven2</repositoryContentClass>
<repositoryKind>hosted</repositoryKind>
<repositoryPolicy>RELEASE</repositoryPolicy>
<repositoryURL>
http://nexusurl/service/local/repositories/releases
</repositoryURL>
</org.sonatype.nexus.rest.model.NexusNGRepositoryDetail>
</repoDetails>
<data>
<artifact>
<groupId>com.abc</groupId>
<artifactId>abc</artifactId>
<version>10.2.1</version>
<latestRelease>10.2.1</latestRelease>
<latestReleaseRepositoryId>releases</latestReleaseRepositoryId>
<artifactHits>
<artifactHit>
<repositoryId>releases</repositoryId>
<artifactLinks>
<artifactLink>
<extension>pom</extension>
</artifactLink>
<artifactLink>
<extension>tar.gz</extension>
</artifactLink>
</artifactLinks>
</artifactHit>
</artifactHits>
</artifact>
<artifact>
<groupId>com.abc</groupId>
<artifactId>abc</artifactId>
<version>2.1</version>
<latestRelease>10.2.1</latestRelease>
<latestReleaseRepositoryId>releases</latestReleaseRepositoryId>
<artifactHits>
<artifactHit>
<repositoryId>releases</repositoryId>
<artifactLinks>
<artifactLink>
<extension>pom</extension>
</artifactLink>
<artifactLink>
<extension>tar.gz</extension>
</artifactLink>
</artifactLinks>
</artifactHit>
</artifactHits>
</artifact>
<artifact>
<groupId>com.abc</groupId>
<artifactId>abc</artifactId>
<version>1.2</version>
<latestRelease>10.2.1</latestRelease>
<latestReleaseRepositoryId>releases</latestReleaseRepositoryId>
<artifactHits>
<artifactHit>
<repositoryId>releases</repositoryId>
<artifactLinks>
<artifactLink>
<extension>pom</extension>
</artifactLink>
<artifactLink>
<extension>tar.gz</extension>
</artifactLink>
</artifactLinks>
</artifactHit>
</artifactHits>
</artifact>
<artifact>
<groupId>com.abc</groupId>
<artifactId>abc</artifactId>
<version>1.1</version>
<latestRelease>10.2.1</latestRelease>
<latestReleaseRepositoryId>releases</latestReleaseRepositoryId>
<artifactHits>
<artifactHit>
<repositoryId>releases</repositoryId>
<artifactLinks>
<artifactLink>
<extension>pom</extension>
</artifactLink>
<artifactLink>
<extension>tar.gz</extension>
</artifactLink>
</artifactLinks>
</artifactHit>
</artifactHits>
</artifact>
<artifact>
<groupId>com.abc</groupId>
<artifactId>abc</artifactId>
<version>1.0</version>
<latestRelease>10.2.1</latestRelease>
<latestReleaseRepositoryId>releases</latestReleaseRepositoryId>
<artifactHits>
<artifactHit>
<repositoryId>releases</repositoryId>
<artifactLinks>
<artifactLink>
<extension>pom</extension>
</artifactLink>
<artifactLink>
<extension>tar.gz</extension>
</artifactLink>
</artifactLinks>
</artifactHit>
</artifactHits>
</artifact>
</data>
</searchNGResponse>
这是 nexus 搜索的错误吗api?
看这里:
请注意,以上限制适用于 Nexus 2.x。 Nexus 3.x 没有这个限制。