On 2007-06-25 17:07:37 +0200, Jason van Zyl <[EMAIL PROTECTED]> said:
On 25 Jun 07, at 3:41 AM 25 Jun 07, Jochen Kuhnle wrote:
Hi,
I'd like to put another patch up for discussion. I have attached [1]
and [2] to the Jira issue. These patches provide (yet another :-)
extension to use JDK 1.5+ annotations for Mojos. The consist of the
annotations [1] and a new descriptor extractor [2] that uses QDOX
1.6.3.
The main features are:
1. Multi-Mojo annotations. After writing a dozen plugins where I had
to use subclassing to supply to Mojos of the same kind in two
different configurations (like AbstractCompilerMojo, CompilerMojo and
TestCompilerMojo), I extended the annotations to allow a class to be
annotated with two different goals.
2. Mojo inheritance (rather: prototypes): With this, you can specify
prototype Mojos from which your Mojos inherits decriptor and parameter
properties. Now you can extend a Maven Mojo without duplicating all
annotations. Mojo and parameter annotations can be overwritten, of
course.
How is any of this different then what's in the branch? Look at the
dashboard for a description of the work. Eric and Kenney have worked
on something and it's in a branch I started trying to integrate so
work with them to integrate any difference.
It's prototypes and multi-mojo-annotations I wanted to put up for
discussion (and demonstrate, since the code was there). If the concept
is accepted, I will gladly supply a patch to integrate this into the
the existing code.
Regards,
Jochen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]