maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte" <rfscho...@apache.org>
Subject Re: Plugins with parameters and defaultValue
Date Sat, 08 Feb 2014 16:10:55 GMT
If I'm correct, these are all the same:

CDI      @Inject
Plexus'  @Requirement
Plugin's @Component

However, the way MavenSession, MavenProject and MojoExecution are injected  
isn't done by DI, but by the expression evaluator.

Robert

Op Sat, 08 Feb 2014 17:00:48 +0100 schreef Igor Fedorenko  
<igor@ifedorenko.com>:

>
>
> On 2/8/2014, 9:56, Hervé BOUTEMY wrote:
>> ok, here the confusion is that there are 2 @Component annotations:
>> org.apache.maven.plugins.annotations.Component = plugin-tools
>> and
>> org.codehaus.plexus.component.annotations.Component = Plexus on Guice
>>
>> plugin-tools @Component annotation for objects injected by
>> PluginParameterExpressionEvaluator causes confusion at plugin-tools  
>> level
>>
>
> Can you point me at the code that implements this? I was under
> impression that plugin-tools @Component was translated to plexus/guice
> requirement at runtime and there was no real difference between the two.
> Any special handing of @Component in PluginParameterExpressionEvaluator
> should not be necessary in 3.2 and I would like to clean this up.
>
> --
> Regards,
> Igor
>
> ---------------------------------------------------------------------
> 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