Definitely useful...   I ran into this in the GPG plugin just last week.   
I added a sign-and-deploy-file mojo that I wanted to just extend the 
deploy-file mojo from the deploy plugin.    Ended up being a lot harder 
to do than I expected.   Had to resort to some reflection magic to fill 
in fields in the super class.    Really sucked actually.

Dan

On Wednesday 26 September 2007, Jason van Zyl wrote:
> On 25 Sep 07, at 10:21 PM 25 Sep 07, Brian E. Fox wrote:
> > This is interesting functionality that the dev team should be aware
> > of.
> > I know it's frequently asked how to extend a plugin.
>
> We could definitely integrate this method, would be highly useful.
>
> When we integrate the anno-mojo stuff we'll have this with
> annotations but doing this with the existing mechanism would be good.
>
> > --Brian
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> > Stuart McCulloch
> > Sent: Tuesday, September 25, 2007 11:21 AM
> > To: Maven Users List
> > Subject: mojo inheritance
> >
> > Hi,
> >
> > I've developed a small plugin that lets you extend mojos from other
> > maven
> > plugins by merging the plugin metadata:
> >
> >
> > http://www.ops4j.org/projects/pax/construct/maven-inherit-plugin/
> > index.h
> > tml
> >
> > I've successfully used this to extend various core plugins - is
> > anyone interested in this approach (or is it a bad idea?)
> >
> > --
> > Cheers, Stuart
> >
> > --------------------------------------------------------------------
> >- To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder,  Apache Maven
> jason at sonatype dot com
> ----------------------------------------------------------
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to