Here is a snippet from something I'm currently working on. It can see the transitive dependencies with getArtifacts().
in the mojo: * @goal add-externalized-properties * @phase process-resources * @requiresDependencyResolution compile */ public class AddExternalizedPropertiesMojo extends AbstractMojo { ... /** * @parameter expression="${project}" * @required * @readonly */ private MavenProject project; ------------------------------------------------------ in resulting META-INF\maven\plugin.xml: <plugin> ... <mojos> <mojo> <goal>add-externalized-properties</goal> ... <requiresDependencyResolution>compile</requiresDependencyResolution> ... <phase>process-resources</phase> -- View this message in context: http://www.nabble.com/How-to-get-all-dependecy-in-a-mojo---tp19533728p19544802.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]