I'm writing a plugin with rather complex configuration, and I haven't
found any documentation on how to get annotations looked at in custom
classes representing parts of the configuration.  Maven (actually
Plexus, I suppose, under the covers) is finding my classes and
injecting values, but doesn't seem to look at any annotations therein,
only those in the mojo itself.  This means I can't get things like
${project.build.sourceEncoding} injected into the objects that need to
know about them, but instead will have to grab them all in the mojo,
even things that class never uses, and pass lots of stuff down the
bucket brigade to the classes which actually care.

Is there a better way to do what I want?

-- 
Mark H. Wood, Lead System Programmer   [email protected]
Asking whether markets are efficient is like asking whether people are smart.

Attachment: pgpcdYLctxYy0.pgp
Description: PGP signature

Reply via email to