You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Sten Roger Sandvik <sr...@x3m.com> on 2009/01/16 19:38:59 UTC

Maven SCR Plugin using Annotations?

Hi.

I looked at the SCR maven plugin and see that it only supports javadoc
attributes and not full Java 5 annotations. It would be really nice to
support this in the plugin. I looked at other projects like Naked OSGi, but
did not like that it only supports Java 6 (and the new annotation mirroring
API).

So my question is: Has anybody something like this in progress? Using Java 5
annotations instead of javadoc attributes?
If not, I would really start looking into it. It seems to me that the
current maven plugin can easily be fitted to include both "styles". Any
comments on this?

BR,
Sten Roger Sandvik

Re: Maven SCR Plugin using Annotations?

Posted by Carsten Ziegeler <cz...@apache.org>.
Sten Roger Sandvik wrote:
> Yes, I will really try to create an initial version of this. Should I post a
> jira task with the patches as it's progressing? I'm in a project right now
> that is in desperate use for such a thing so I will probably have some
> initial code ready quite soon.
> 

Very cool, if you have any questions/problems just let us know.

Carsten
-- 
Carsten Ziegeler
cziegeler@apache.org

Re: Maven SCR Plugin using Annotations?

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Sten,

Sten Roger Sandvik schrieb:
> Yes, I will really try to create an initial version of this. Should I post a
> jira task with the patches as it's progressing? I'm in a project right now
> that is in desperate use for such a thing so I will probably have some
> initial code ready quite soon.

Yes, Jira would be great - best would be patches against the
maven-scr-plugin source tree. Remember to mark the patchs as "ok to be
included with Apache".

Thanks a lot !

Regards
Felix

> 
> BR,
> Sten Roger Sandvik
> 
> On Fri, Jan 16, 2009 at 7:49 PM, Felix Meschberger <fm...@gmail.com>wrote:
> 
>> Hi Sten,
>>
>> Sten Roger Sandvik schrieb:
>>> Hi.
>>>
>>> I looked at the SCR maven plugin and see that it only supports javadoc
>>> attributes and not full Java 5 annotations. It would be really nice to
>>> support this in the plugin. I looked at other projects like Naked OSGi,
>> but
>>> did not like that it only supports Java 6 (and the new annotation
>> mirroring
>>> API).
>>>
>>> So my question is: Has anybody something like this in progress? Using
>> Java 5
>>> annotations instead of javadoc attributes?
>>> If not, I would really start looking into it. It seems to me that the
>>> current maven plugin can easily be fitted to include both "styles". Any
>>> comments on this?
>> I am not aware of any one currently working on it.
>>
>> In fact, we have been discussing this a few days ago. Basically the
>> problem is as follows: The outcome of the plugin would still have to be
>> the component declaration files. But the settings could as well be
>> defined by annotations instead of JavaDoc tags.
>>
>> And yes, I think, the plugin would certainly be able to cope with the
>> annotation style, too.
>>
>> If you would take a stab at it and provide a patch (however partial this
>> may be at first), it would certainly be welcomed.
>>
>> Regards
>> Felix
>>
>>> BR,
>>> Sten Roger Sandvik
>>>
> 

Re: Maven SCR Plugin using Annotations?

Posted by Sten Roger Sandvik <sr...@x3m.com>.
Yes, I will really try to create an initial version of this. Should I post a
jira task with the patches as it's progressing? I'm in a project right now
that is in desperate use for such a thing so I will probably have some
initial code ready quite soon.

BR,
Sten Roger Sandvik

On Fri, Jan 16, 2009 at 7:49 PM, Felix Meschberger <fm...@gmail.com>wrote:

> Hi Sten,
>
> Sten Roger Sandvik schrieb:
> > Hi.
> >
> > I looked at the SCR maven plugin and see that it only supports javadoc
> > attributes and not full Java 5 annotations. It would be really nice to
> > support this in the plugin. I looked at other projects like Naked OSGi,
> but
> > did not like that it only supports Java 6 (and the new annotation
> mirroring
> > API).
> >
> > So my question is: Has anybody something like this in progress? Using
> Java 5
> > annotations instead of javadoc attributes?
> > If not, I would really start looking into it. It seems to me that the
> > current maven plugin can easily be fitted to include both "styles". Any
> > comments on this?
>
> I am not aware of any one currently working on it.
>
> In fact, we have been discussing this a few days ago. Basically the
> problem is as follows: The outcome of the plugin would still have to be
> the component declaration files. But the settings could as well be
> defined by annotations instead of JavaDoc tags.
>
> And yes, I think, the plugin would certainly be able to cope with the
> annotation style, too.
>
> If you would take a stab at it and provide a patch (however partial this
> may be at first), it would certainly be welcomed.
>
> Regards
> Felix
>
> >
> > BR,
> > Sten Roger Sandvik
> >
>

Re: Maven SCR Plugin using Annotations?

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Sten,

Sten Roger Sandvik schrieb:
> Hi.
> 
> I looked at the SCR maven plugin and see that it only supports javadoc
> attributes and not full Java 5 annotations. It would be really nice to
> support this in the plugin. I looked at other projects like Naked OSGi, but
> did not like that it only supports Java 6 (and the new annotation mirroring
> API).
> 
> So my question is: Has anybody something like this in progress? Using Java 5
> annotations instead of javadoc attributes?
> If not, I would really start looking into it. It seems to me that the
> current maven plugin can easily be fitted to include both "styles". Any
> comments on this?

I am not aware of any one currently working on it.

In fact, we have been discussing this a few days ago. Basically the
problem is as follows: The outcome of the plugin would still have to be
the component declaration files. But the settings could as well be
defined by annotations instead of JavaDoc tags.

And yes, I think, the plugin would certainly be able to cope with the
annotation style, too.

If you would take a stab at it and provide a patch (however partial this
may be at first), it would certainly be welcomed.

Regards
Felix

> 
> BR,
> Sten Roger Sandvik
>