Using maven-bundle-plugin to create scr xml from annotations

2015-02-08 Thread Christian Schneider
Hi all I am trying to use scr annotations (org.osgi.service.component.annotations*) with the maven-bundle-plugin. The build runs but it creates no xml file for scr. I have this in my configuration insturctions: * Do I need something else? Here is my full project if you want to check: https://

Re: Using maven-bundle-plugin to create scr xml from annotations

2015-02-08 Thread Bernd
I use the Felix SCR plugin to create the XML file based on the Felix SCR annotations, but is also supports DS annotations: http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/apache-felix-maven-scr-plugin-use.html The bundle plugin will then pick up the created descrip

Re: Using maven-bundle-plugin to create scr xml from annotations

2015-02-08 Thread Jean-Baptiste Onofré
Hi Christian, it should be enough: the maven-bundle-plugin reads the instructions and generate the XML. Let me take a loo on your github. Regards JB On 02/07/2015 11:07 AM, Christian Schneider wrote: Hi all I am trying to use scr annotations (org.osgi.service.component.annotations*) with th

Re: Using maven-bundle-plugin to create scr xml from annotations

2015-02-08 Thread Achim Nierbeck
Hi Christian, you need to use the following instead: <_dsannotations>* this will do the trick. I can't remember when they changed it but this is what works for me. regards, Achim 2015-02-07 11:07 GMT+01:00 Christian Schneider : > Hi all > I am trying to use scr annotations (org.osgi.servic

Re: Using maven-bundle-plugin to create scr xml from annotations

2015-02-08 Thread Christian Schneider
Hi Achim, many thanks. That worked fine. Best regards Christian On 08.02.2015 18:06, Achim Nierbeck wrote: Hi Christian, you need to use the following instead: <_dsannotations>* this will do the trick. I can't remember when they changed it but this is what works for me. regards, Achim

Re: Using maven-bundle-plugin to create scr xml from annotations

2015-02-08 Thread Jean-Baptiste Onofré
After taking a look on your git, I think that the following instruction is missing in plugin configuration: <_dsannotations>* It's required with 2.5.x version of the plugin. Regards JB On 02/07/2015 11:07 AM, Christian Schneider wrote: Hi all I am trying to use scr annotations (org.osgi.serv

Re: Using maven-bundle-plugin to create scr xml from annotations

2015-02-08 Thread Jean-Baptiste Onofré
Erf, just saw this e-mail ;) I was late ;) Regards JB On 02/08/2015 10:49 PM, Christian Schneider wrote: Hi Achim, many thanks. That worked fine. Best regards Christian On 08.02.2015 18:06, Achim Nierbeck wrote: Hi Christian, you need to use the following instead: <_dsannotations>* thi