Nexus:查询快照版本的所有时间戳版本

Nexus: query all timestamped versions of a snapshot version

我想查询快照的所有时间戳版本。例如,如果版本是 1.0-SNAPSHOT,并且有三个快照版本(1.0-20160913.135022-1、1.0-20160914.101629-2 和 1.0-20160914.143734-3),我想列出所有三个快照版本。

我已经尝试过 lucene 搜索 - 它提供了所有工件,但仅涉及快照版本 (1.0-SNAPSHOT),不涉及时间戳。

maven-metadata.xml 仅引用最新的时间戳构建,不提供其他时间戳构建的详细信息。

收到服务于

的 Sonatype 支持团队的以下回复

You can use the REST API for this. Specifically the "/service/local/repositories//content" endpoint: curl -u admin:admin123 -H "Accept: application/json" http://localhost:8081/nexus/service/local/repositories/snapshots/content/org/foo/project/1.0.0-SNAPSHOT/

This will return a JSON response with all timestamped versions in that directory.