You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Miles Burton <mi...@gmail.com> on 2012/07/23 11:41:32 UTC

Groovy, SCR annotations and the maven-scr-plugin

Hi all,



I’ve recently been brought onto a new project to migrate some legacy code.
We’ve had some good success with Groovy assuming the OSGI manifests are
written manually but when I try and use a more modern annotation driven
approach the scr-plugin doesn’t appear to pick up the reference.



Has anyone tried to use the annotations in combination with groovy?



This is how my pom is looking: (feel free to make any comments; I’m from a
Grails world so OSGi/Felix/CRX is all fairly new to me):



pastebin.com/G9PuWqxV



Thanks,

Miles



-- 
Many thanks,
Miles Burton

Re: Groovy, SCR annotations and the maven-scr-plugin

Posted by Carsten Ziegeler <cz...@apache.org>.
Hi,

I think you can give the latest version from svn of the plugin a try -
it reads the generated class files and therefore should work in your
situation.

Regards
Carsten

2012/7/23 Miles Burton <mi...@gmail.com>:
> Thats a shame. Are there any recommended alternatives?
>
> I was investigating IPojo to see if that would play ball but I had multiple
> dependency issues. On a related note, is it possible to deploy a depedant
> bundle within a  host? (So I can add IPojo directly in a dependant)  If
> not, what are the best practises for maintain bundle dependencies
>
> On Mon, Jul 23, 2012 at 4:31 PM, Justin Edelson <ju...@justinedelson.com>wrote:
>
>> Hi Miles,
>> I don't think the maven-scr-plugin works with any language other than Java
>> right now. There's an effort on to rewrite the core of the scr-plugin in
>> such a way that it operates at the bytecode rather than the source code
>> level. See https://issues.apache.org/jira/browse/FELIX-3568 for details.
>>
>> Regards,
>> Justin
>>
>> On Mon, Jul 23, 2012 at 5:41 AM, Miles Burton <miles.burton@gmail.com
>> >wrote:
>>
>> > Hi all,
>> >
>> >
>> >
>> > I’ve recently been brought onto a new project to migrate some legacy
>> code.
>> > We’ve had some good success with Groovy assuming the OSGI manifests are
>> > written manually but when I try and use a more modern annotation driven
>> > approach the scr-plugin doesn’t appear to pick up the reference.
>> >
>> >
>> >
>> > Has anyone tried to use the annotations in combination with groovy?
>> >
>> >
>> >
>> > This is how my pom is looking: (feel free to make any comments; I’m from
>> a
>> > Grails world so OSGi/Felix/CRX is all fairly new to me):
>> >
>> >
>> >
>> > pastebin.com/G9PuWqxV
>> >
>> >
>> >
>> > Thanks,
>> >
>> > Miles
>> >
>> >
>> >
>> > --
>> > Many thanks,
>> > Miles Burton
>> >
>>
>
>
>
> --
> Many thanks,
> Miles Burton



-- 
Carsten Ziegeler
cziegeler@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Groovy, SCR annotations and the maven-scr-plugin

Posted by Miles Burton <mi...@gmail.com>.
Thats a shame. Are there any recommended alternatives?

I was investigating IPojo to see if that would play ball but I had multiple
dependency issues. On a related note, is it possible to deploy a depedant
bundle within a  host? (So I can add IPojo directly in a dependant)  If
not, what are the best practises for maintain bundle dependencies

On Mon, Jul 23, 2012 at 4:31 PM, Justin Edelson <ju...@justinedelson.com>wrote:

> Hi Miles,
> I don't think the maven-scr-plugin works with any language other than Java
> right now. There's an effort on to rewrite the core of the scr-plugin in
> such a way that it operates at the bytecode rather than the source code
> level. See https://issues.apache.org/jira/browse/FELIX-3568 for details.
>
> Regards,
> Justin
>
> On Mon, Jul 23, 2012 at 5:41 AM, Miles Burton <miles.burton@gmail.com
> >wrote:
>
> > Hi all,
> >
> >
> >
> > I’ve recently been brought onto a new project to migrate some legacy
> code.
> > We’ve had some good success with Groovy assuming the OSGI manifests are
> > written manually but when I try and use a more modern annotation driven
> > approach the scr-plugin doesn’t appear to pick up the reference.
> >
> >
> >
> > Has anyone tried to use the annotations in combination with groovy?
> >
> >
> >
> > This is how my pom is looking: (feel free to make any comments; I’m from
> a
> > Grails world so OSGi/Felix/CRX is all fairly new to me):
> >
> >
> >
> > pastebin.com/G9PuWqxV
> >
> >
> >
> > Thanks,
> >
> > Miles
> >
> >
> >
> > --
> > Many thanks,
> > Miles Burton
> >
>



-- 
Many thanks,
Miles Burton

Re: Groovy, SCR annotations and the maven-scr-plugin

Posted by Justin Edelson <ju...@justinedelson.com>.
Hi Miles,
I don't think the maven-scr-plugin works with any language other than Java
right now. There's an effort on to rewrite the core of the scr-plugin in
such a way that it operates at the bytecode rather than the source code
level. See https://issues.apache.org/jira/browse/FELIX-3568 for details.

Regards,
Justin

On Mon, Jul 23, 2012 at 5:41 AM, Miles Burton <mi...@gmail.com>wrote:

> Hi all,
>
>
>
> I’ve recently been brought onto a new project to migrate some legacy code.
> We’ve had some good success with Groovy assuming the OSGI manifests are
> written manually but when I try and use a more modern annotation driven
> approach the scr-plugin doesn’t appear to pick up the reference.
>
>
>
> Has anyone tried to use the annotations in combination with groovy?
>
>
>
> This is how my pom is looking: (feel free to make any comments; I’m from a
> Grails world so OSGi/Felix/CRX is all fairly new to me):
>
>
>
> pastebin.com/G9PuWqxV
>
>
>
> Thanks,
>
> Miles
>
>
>
> --
> Many thanks,
> Miles Burton
>