0

I would like to determine the list of dependencies of an artifact in a Maven repository.

My best approach so far: Download the POM, construct a pseudo-project that just contains this POM and run dependency:list with the appropriate parameters.

Since Maven itself does the same thing (determines dependencies of artifacts to construct a dependency tree), I wonder if there is a more direct way. I would to run it from Java, so any Java method or Maven goal would be fine.

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142

0 Answers0