On Tue, Feb 15, 2011 at 5:12 AM, Laird Nelson <[email protected]> wrote:
> Hello; I apologize if my terminology is off. (I've never understood the > difference between a dependency and an artifact in the innards of Maven; > happy to be educated.) > > I have to write a Maven plugin that, in order to work properly, needs a > topologically sorted list of resolved dependencies. > > I was hoping that such a list existed somewhere that I could inject into my > plugin using the Javadoc tags. > > Classpath order isn't really good enough; it is quite possible to > explicitly > declare a dependency that might otherwise be transitively included; when > you > do that, of course, the explicit declaration shows up "higher" in the > classpath than it would if it were included transitively. No, I need to > sort the dependencies topologically, from least dependent to most dependent > (i.e. from the artifact with the least number of dependencies to the > artifact with the greatest number of dependencies). > > What's the best way of accomplishing this? > Is something like this http://maven.apache.org/plugins/maven-dependency-plugin/ what you want? Try mvn dependency:tree
