On 10/11/06, Sebastien Brunot <[EMAIL PROTECTED]> wrote:
I'm not sure I undestand your question, but I want to get a list of all
the artifact that correspond to a dependency declared in the
MavenProject POM, with or without transitivity depending on a parameter
set in my plugin configuration. Without transitivity is mandatory, with
transitivity is optional.

I believe that: project.getArtifacts() returns all the project's
dependencies, including transitive ones; and
project.getDependencyArtifacts() only returns the immediate
dependencies declared in the project's pom.

Although you say you're trying to resolve the dependencies of a
dependency in a project?  As soon as you start traversing deeper than
the first level of dependencies in the pom, you need to start
resolving them yourself.  I've recently extracted code to do this into
a shared component that's currently sitting in JIRA, see:

http://jira.codehaus.org/browse/MNG-2654

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to