Hi,

 

I'm writing a custom MOJO and have got most of the way to what I want using
the FAQs etc on the site.  There's one bit I can't work out how to do
though, so if anybody could point me in the right direction that would be
great.

 

Basically I'm interested to know how my MOJO code can invoke / access the
functionality of another plugin.  So for example, let's say what I want to
do is copy my dependencies to a directory by using
"dependency:copy-dependencies".  Now I could just look at the source code
for that plugin and cut'n'paste away, but I'm sure there must be a better
way - i.e. I can declare appropriate dependencies and somehow make use of
the existing plugin code.

 

Is this possible?  

 

NB - I know I can invoke copy-dependencies by declaring something in my
pom's plugins section.  I'm just using it for an example - let's say that
the target directory name can't be expressed in the pom for some reason
(needs to be generated in some way, perhaps)

 

Thanks in advance for any help!

 

James

Reply via email to