7

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.

Lii
  • 11,553
  • 8
  • 64
  • 88
David Portabella
  • 12,390
  • 27
  • 101
  • 182

1 Answers1

6

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.

Joe
  • 29,416
  • 12
  • 68
  • 88
  • 2
    The current stable version of the maven-indexer is from 2013 and it doesn't work together with maven-core 3.2.X. And the ticket system on that repo is closed, which is not very friendly. – Robert Reiz Jun 02 '15 at 10:18