I'm helping someone writing a JAXB plugin for Maven2, and one thing we'd like to do there is to read mojo configuration in a custom way --- not by using the default field injection.

I was reading the code and it seems like I should be able to do so if I write a custom ComponentConfigurator, but I don't know how to package my plugin so that Maven recognizes my ComponentConfigurator.

The API specification [1] defines @configurator annotation on Mojo, but it also says the parameter isn't a class name, but it's a role hint. So it seems like I need to register my custom ComponentConfigurator separately to Plexus, but that's where I got stuck.

How can tell Maven to use my custom ComponentConfigurator?


[1] http://maven.apache.org/developers/mojo-api-specification.html
--
Kohsuke Kawaguchi
Sun Microsystems                   [EMAIL PROTECTED]

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to