简体   繁体   English

来自Nexus存储库的所有工件列表

[英]List of all artifacts from Nexus repository

Within my application I deploy generated artifacts to a certain (hosted) Nexus repository. 在我的应用程序中,我将生成的工件部署到某个(托管的)Nexus存储库。 From another instance of my application I want to know all artifacts that have been deployed to that repository. 从我的应用程序的另一个实例,我想知道已部署到该存储库的所有工件。 I studied the Nexus REST API but couldn't find a way to get that information. 我研究了Nexus REST API但无法找到获取该信息的方法。 Does anybody know how to get a list/set of all artifacts of a given Nexus repository via REST or any other API? 有没有人知道如何通过REST或任何其他API获取给定Nexus存储库的所有工件的列表/集合?

The best way to monitor artifacts deployed to a Nexus repository is to subscribe to the RSS feed: 监视部署到Nexus存储库的工件的最佳方法是订阅RSS源:

http://books.sonatype.com/nexus-book/reference/using-sect-feeds.html http://books.sonatype.com/nexus-book/reference/using-sect-feeds.html

One method would be to note that Nexus simply provides a means to manage the integration of artifacts into a REST tree -- what we used to call a simple web server. 一种方法是注意到Nexus只是提供了一种方法来管理工件到REST树的集成 - 我们以前称之为简单的Web服务器。 In that manner, you can do what is effectively a scrape of the REST endpoint in the same manner that HTML content is scraped. 通过这种方式,您可以像抓取HTML内容一样,有效地清除REST端点。

A better way is to download the indexes that are generated by Nexus and interpret them. 更好的方法是下载Nexus生成的索引并解释它们。 Nexus Can't Download Remote Repo Index and Nexus - proxy repositories with no indexes? Nexus无法下载远程回购索引Nexus - 没有索引的代理存储库? are references for what is going on with that method. 是该方法的参考。

Maven-Indexer正是我想要的: https//github.com/apache/maven-indexer/blob/master/README.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM