Hi Joachim,
Some methods on MavenProject are deliberately limited to what you see in the
pom, and others contain computed values. getDependencies() and
getDependencyArtifacts() are the former type. Probably you want
getArtifacts(). That will give you a Set of Artifact objects which should
have
you have to declare your mojo class as @requiresDependencyResolution.
Best regards,
Christoph
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Joachim, you originally sent this email at:
Date: Nov 4, 2006 5:42 PM
Subject: How to get path to artifact for a dependency in a plugin
And then again 13hrs later:
Date: Nov 5, 2006 6:45 AM
Subject: How to get path to artifact for a dependency in a plugin
Please *do not* send emails multiple
I am writing a plugin where I need access to the jar file for a dependency.
I have tried looping the dependencies to find this (from
MavenProject.getDependencies()), but the dependencies always seem to
have null as their getSystemPath() value.
I have also tried checking the artifacts, but
I am writing a plugin where I need access to the jar file for a dependency.
I have tried looping the dependencies to find this (from
MavenProject.getDependencies()), but the dependencies always seem to
have null as their getSystemPath() value.
I have also tried checking the artifacts, but