List all artifacts in a Maven repository

5.9k views Asked by At

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.

1

There are 1 answers

1
Joe On BEST ANSWER

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.