Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Searching for all artifacts for a given group id and artifactid...

Erik Brakkee wrote:

Now, given the basic coordinates of groupId, artifactId, and of course the
repository URL, is it possible to find all artifacts for those coordinates
using aether?

Maybe, see [0] for an example finding all deployed versions for a given groupId+artifactId.

However, be aware of the issue discussed in [1].

An alternative would be to download the pom only (how to do that?) and
then parse the pom to find out all artifacts but that solution is not that
nice.

That sounds like the case demonstrated in [2].

Also see [2] for another alternative.


Benjamin


[0] https://github.com/sonatype/sonatype-aether/blob/master/aether-demo/src/main/java/demo/FindAvailableVersions.java
[1] http://dev.eclipse.org/mhonarc/lists/aether-users/msg00079.html
[2] https://github.com/sonatype/sonatype-aether/blob/master/aether-demo/src/main/java/demo/GetDirectDependencies.java
[3] http://dev.eclipse.org/mhonarc/lists/aether-users/msg00030.html


Back to the top