Hi, James,

that tip is almost good! But this one executes the mojo, and I want to have
the mojo object accessible, as I want to access a field. In more details, I
want to call the getResults() method on ResolveDependenciesMojo to get hold
of the dependencies.
The actual scenario: I want to build a classpath string containing some
dependencies of the plugin and the dependencies of the current project. Or I
need a list of resolved jar files for the same set of dependencies.

Cheers,
Kai

2010/2/22 James William Dumay <[email protected]>

> Hey Kai,
> You might want to checkout the Mojo Executor project :)
>
> http://code.google.com/p/mojo-executor/
>
> James
>
>
> Kai Hackemesser wrote:
>
>> Hi,
>>
>> I would like to execute another Mojo (the ResolveDependenciesMojo) from
>> inside my own Mojo. I wasn't yet successful in adding it with the
>> @component
>> annotation. What is a proper way to do that?
>>
>> Cheers,
>> Kai
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to