maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé BOUTEMY <herve.bout...@free.fr>
Subject Re: Problem while getting injected parameters from plugin configuration.
Date Sun, 21 Sep 2014 16:14:14 GMT
hte attribute "without property" seems to be expected to be a Plexus 
component, but you didn't declare it:

1. in ClojureExecutorImpl, you should use Plexus @Component annotation like 
http://maven.apache.org/plugins-archives/maven-checkstyle-plugin-LATEST/xref/org/apache/maven/plugin/checkstyle/exec/DefaultCheckstyleExecutor.html

2. then inject the component into your plugin using plugin-tools @Component 
like http://maven.apache.org/plugins-archives/maven-checkstyle-plugin-LATEST/xref/org/apache/maven/plugin/checkstyle/AbstractCheckstyleReport.html#L439

notice these 2 @Component annotations are not the same ones: we should have 
named them differently...

the first one marks a class as a Plexus component:
http://plexus.codehaus.org/plexus-containers/plexus-component-annotations/

the second one injects a Plexus component into a Mojo:
http://maven.apache.org/plugin-tools/maven-plugin-tools-annotations/index.html


HTH

Regards,

Hervé

Le dimanche 21 septembre 2014 07:14:49 animator a écrit :
> Yes, of course,
> 
> plugin: https://github.com/lgadawski/cloverage-maven-plugin ,
> test project: https://github.com/lgadawski/test-polyglot-project
> 
> Mojo class:
> https://github.com/lgadawski/cloverage-maven-plugin/blob/master/src/main/jav
> a/com/gadawski/maven/plugins/cloverage/goals/InstrumentMojo.java I declared
> there 4 parameter, those declared with property attirubutes work fine, but
> those without, that reffers to configuration don't.
> 
> 
> 
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Problem-while-getting-injected-parameters-> from-plugin-configuration-tp5805894p5805910.html
Sent from the Maven
> Developers mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message