Hi,

when I'm coding a mojo, if I call MavenProject's getArtifacts(), I can only get 
artifacts from the project level dependencies.

How do I obtain artifacts from a plugin's dependencies?

Presumably I call something like project.getPlugin(key).getDependencies()?

If the 'key' required for project.getPlugin(key) is of the form 
myGroup:myPlugin:version e.g. com.megacorp:thing-plugin:1.0.2

can I get my mojo's own key programmatically in the mojo to avoid hard-coding 
it?

Thanks
Adam

Reply via email to