Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

list all artifacts from a maven repository

Aether has a function to get all versions of a given artifact, as follows:

org.sonatype.aether.impl.VersionRangeResolver.resolveVersionRange( 
    RepositorySystemSession session, 
    VersionRangeRequest request )

Is there a aether function to list all the artifacts in a repository?

Or how to get that list?

Note: I am aware that most Maven repositories offer a human-readable index that you could parse and crawl. This is not a safe solution, just a workaround, and I am not looking for this type of solution.

like image 721
David Portabella Avatar asked May 01 '13 09:05

David Portabella


1 Answers

Pretty much an official answer of "no" is this answer to "list artifacts with Aether?":

No.

These kind of queries for are a job for the Maven Indexer.

from Benjamin Bentmann.

You may find that the Maven Indexer is exactly what you need, however.

like image 133
Joe Avatar answered Oct 02 '22 06:10

Joe