You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Benson Margulies <bi...@gmail.com> on 2014/12/02 16:47:12 UTC
I thought that @Component was a good thing
[WARNING] Deprecated @component for project field in
com.fasterxml.jackson.jsonschemaplugin.JsonSchemaMojo.: replace with
@parameter name="${project}" @readonly
This surprised me, coming from the maven-plugin-plugin when used as a report.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: I thought that @Component was a good thing
Posted by Hervé BOUTEMY <he...@free.fr>.
here is the Jira issue:
http://jira.codehaus.org/browse/MPLUGIN-257
Regards,
Hervé
Le mardi 2 décembre 2014 20:16:52 Robert Scholte a écrit :
> We made a small mistake by exposing common Objects such as MavenProject,
> MavenSession and Settings as Components to make it easier to inject them.
> However, these kind of of Objects are not injected like a
> (Plexus)-Component, hence the reason why we reverted this feature.
>
> Robert
>
> Op Tue, 02 Dec 2014 16:47:12 +0100 schreef Benson Margulies
>
> <bi...@gmail.com>:
> > [WARNING] Deprecated @component for project field in
> > com.fasterxml.jackson.jsonschemaplugin.JsonSchemaMojo.: replace with
> > @parameter name="${project}" @readonly
> >
> > This surprised me, coming from the maven-plugin-plugin when used as a
> > report.
> >
> > ---------------------------------------------------------------------
> > 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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: I thought that @Component was a good thing
Posted by Robert Scholte <rf...@apache.org>.
A Mojo @Component annotated field should match a Plexus @Component
annotated class.
Op Tue, 02 Dec 2014 20:18:26 +0100 schreef Benson Margulies
<bi...@gmail.com>:
> But these are 'maven' @Component, not plexus @Component, rigtht? Two
> different annotation classes? You've regretted the entire
> maven-not-plexus @Component?
>
> On Tue, Dec 2, 2014 at 2:16 PM, Robert Scholte <rf...@apache.org>
> wrote:
>> We made a small mistake by exposing common Objects such as MavenProject,
>> MavenSession and Settings as Components to make it easier to inject
>> them.
>> However, these kind of of Objects are not injected like a
>> (Plexus)-Component, hence the reason why we reverted this feature.
>>
>> Robert
>>
>> Op Tue, 02 Dec 2014 16:47:12 +0100 schreef Benson Margulies
>> <bi...@gmail.com>:
>>
>>> [WARNING] Deprecated @component for project field in
>>> com.fasterxml.jackson.jsonschemaplugin.JsonSchemaMojo.: replace with
>>> @parameter name="${project}" @readonly
>>>
>>> This surprised me, coming from the maven-plugin-plugin when used as a
>>> report.
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>
> ---------------------------------------------------------------------
> 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
Re: I thought that @Component was a good thing
Posted by Benson Margulies <bi...@gmail.com>.
But these are 'maven' @Component, not plexus @Component, rigtht? Two
different annotation classes? You've regretted the entire
maven-not-plexus @Component?
On Tue, Dec 2, 2014 at 2:16 PM, Robert Scholte <rf...@apache.org> wrote:
> We made a small mistake by exposing common Objects such as MavenProject,
> MavenSession and Settings as Components to make it easier to inject them.
> However, these kind of of Objects are not injected like a
> (Plexus)-Component, hence the reason why we reverted this feature.
>
> Robert
>
> Op Tue, 02 Dec 2014 16:47:12 +0100 schreef Benson Margulies
> <bi...@gmail.com>:
>
>> [WARNING] Deprecated @component for project field in
>> com.fasterxml.jackson.jsonschemaplugin.JsonSchemaMojo.: replace with
>> @parameter name="${project}" @readonly
>>
>> This surprised me, coming from the maven-plugin-plugin when used as a
>> report.
>>
>> ---------------------------------------------------------------------
>> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: I thought that @Component was a good thing
Posted by Robert Scholte <rf...@apache.org>.
We made a small mistake by exposing common Objects such as MavenProject,
MavenSession and Settings as Components to make it easier to inject them.
However, these kind of of Objects are not injected like a
(Plexus)-Component, hence the reason why we reverted this feature.
Robert
Op Tue, 02 Dec 2014 16:47:12 +0100 schreef Benson Margulies
<bi...@gmail.com>:
> [WARNING] Deprecated @component for project field in
> com.fasterxml.jackson.jsonschemaplugin.JsonSchemaMojo.: replace with
> @parameter name="${project}" @readonly
>
> This surprised me, coming from the maven-plugin-plugin when used as a
> report.
>
> ---------------------------------------------------------------------
> 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