简体   繁体   中英

List of all artifacts from Nexus repository

Within my application I deploy generated artifacts to a certain (hosted) Nexus repository. 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. Does anybody know how to get a list/set of all artifacts of a given Nexus repository via REST or any other API?

The best way to monitor artifacts deployed to a Nexus repository is to subscribe to the RSS feed:

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. In that manner, you can do what is effectively a scrape of the REST endpoint in the same manner that HTML content is scraped.

A better way is to download the indexes that are generated by Nexus and interpret them. Nexus Can't Download Remote Repo Index and Nexus - proxy repositories with no indexes? are references for what is going on with that method.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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