Sonatype Nexus, содержащий смолу и военный артефакт с теми же координатами maven, которые не указаны в API поиска lucene

Я использую Sonatype Nexus V2.14.4 в качестве репозитория артефактов. Мы используем конечную точку поиска lucene, чтобы получить список версий, доступных в Nexus.

http://nexusurl/service/local/lucene/search?a=abc&repositoryId=releases

У нас есть сценарий, в котором проект публикует 2 артефакта с одинаковым идентификатором артефакта/групповым идентификатором/версией, но разными типами, war и tar.gz. Пока я выполняю поиск по указанному выше URL-адресу, военный файл не указан.

<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>

Это ошибка с API поиска Nexus?


person Upen    schedule 03.04.2018    source источник


Ответы (1)


Глянь сюда:

https://support.sonatype.com/hc/en-us/articles/213464708-Почему-поиск-не-находит-артефакты-внутри-тогоже-GAV-но-с-другими-extensions-

Обратите внимание, что указанное выше ограничение относится к Nexus 2.x. Nexus 3.x не имеет этого ограничения.

person rseddon    schedule 04.04.2018