On 5/26/07, flaubert g <[EMAIL PROTECTED]> wrote:

Hi Jo,

Thanks for replying.

I'm writing a simple mojo plugin. I want to retrieve all project
dependencies and "subdependencies" and display this list on my console. I
used:

@parameter expression="${project.dependencies}"
List dependencies;

which gives me a collection of "org.apache.maven.model.Dependency"
objects.
I can't find any getter methods to retrieve subdependencies. Should I use
some artifact resolver?


Indeed, you need use the ArtifactResolver to resolve them transitively..
You might find this recent article on Jan Bartel's blog interesting:
http://blogs.webtide.com/janb/2006/03/24/1143234000000.html

Reply via email to