> Actually, getDependencyArtifacts() is always empty for me, wheras getDependencies() is just the > dependencies declared in the pom. Is that right?
I think that is right, and I found a reference to @requiresDependencyResolution that helped a bit - if @requiresDependencyResolution is included in my mojo declaration, then getDependencyArtifacts() works at runtime. But not in my unit tests. Even if I put @requiresDependencyResolution test it still only kicks in at runtime. How can I make it work in unit tests? -- View this message in context: http://www.nabble.com/-m2--How-to-get-artifact-and-Maven-project-for-dependencies-and-transitive-dependencies-tf866711.html#a5760300 Sent from the Maven - Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]