You can look at the enforcer plugin and the shade plugin for examples
of letting users specify custom/specific implementations of components
with their own configurations.
On 24-Jul-08, at 9:50 PM, jaxzin wrote:
I'm trying to create a mojo that is itself pluggable so that my
users can
select an implementation of an interface to use. I'm reading about
plexus
and the @component annotation for mojo fields. It appears the plexus
component's roleHint can only be set in the annotation and not in
the pom
configuration when someone uses my maven plugin. Ideally I'd like
to have
my users specify a class and property values that initialize it in
an IoC
pattern and have it injected into my Mojo. Am I misunderstanding how
to use
plexus and its not built for this? Are there any examples of Mojo
doing
something similar to what I describe, even if its without plexus
components?
--
View this message in context:
http://www.nabble.com/Override-an-%40component-hint-in-the-pom--tp18643797p18643797.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
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
----------------------------------------------------------
First, the taking in of scattered particulars under one Idea,
so that everyone understands what is being talked about ... Second,
the separation of the Idea into parts, by dividing it at the joints,
as nature directs, not breaking any limb in half as a bad carver might.
-- Plato, Phaedrus (Notes on the Synthesis of Form by C. Alexander)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]