On 4/12/06, Michael Meyer <[EMAIL PROTECTED]> wrote:
>
> Hi,
> how can I retrive the names of all dependencies including the transitive
> dependencies in a Java Plugin (Mojo)?
> I took a look at the code of the eclipse plugin but the dependency part
> seemed a bit complicated for
> "just" getting all transitive dependencies. And I'm not familier with
> the term "reactor" that made understanding the
> code a bit awkward ;-)
Hi,
You can do something like this to get all dependencies:
/**
* @parameter expression="${project.artifacts}"
* @required
*/
private Set artifacts;
Then get the name from all the Artifact instances.
--
Cheers,
Kristian