On 01/17/2013 01:59 PM, Danny Schimke wrote:
> Hi Dirk,
> 
> I read your answer. Thanks for that. Can you please explain more detailed,
> what you've done to solve the problem? Do I understand correctly that the
> maven-dependency-plugin offers properties that I can use in my own plugin?

Yes, that's correct. This is what I'm talking about:
http://maven.apache.org/plugins/maven-dependency-plugin/properties-mojo.html

> How can I access them and what do I need to do that they get filled?

The properties are "just there" after the maven-dependency-plugin was
executed. Now you only need a plugin that has access to the MavenProject
instance. This can either be a custom plugin - you request injection of
a MavenProject into your custom mojo, that's standard Maven plugin
coding practice. Alternatively you might use the groovy maven plugin as
described here:
http://docs.codehaus.org/display/GMAVEN/Executing+Groovy+Code

Note that your groovy scripts will have access to the MavenProject
instance that has the properties.

-dirk

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to