Hi, I'm trying to sort the dependencies expressed in the pom.xml (including the transitive ones) in a topological way. I'm using the maven-* API 3.0-alpha-2 and it is in the context of a plugin. I tried to use Maven's embedded API to do so, but I get a NPE when I call getTopologicallySortedProjects(). Here's a snippet of my Mojo:
MavenExecutionResult dm = new DefaultMavenExecutionResult(); dm = dm.setProject(getMavenProject()); //Maven project provided by plexus List<MavenProject> list = dm.getTopologicallySortedProjects(); Anyone has any experience with that? Cheers, Jérémy
