RE: Using OSGi DS and old Apache Felix SCR together

2017-03-16 Thread Stefan Seifert
>I think the bnd support is for the proprietary bnd annotations, not the >proprietary felix annotations. AFAIR bnd never supported the proprietary >felix scr annotations. no, org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin really hooks in the support for the proprietary felix SCR

Re: Using OSGi DS and old Apache Felix SCR together

2017-03-16 Thread David Jencks
I think the bnd support is for the proprietary bnd annotations, not the proprietary felix annotations. AFAIR bnd never supported the proprietary felix scr annotations. I also think that bnd (and thus the maven-bundle-plugin) runs and generates the xml after the unit tests run, so that you

Re: Using OSGi DS and old Apache Felix SCR together

2017-03-16 Thread Roy Teeuwen
Hey Stefan, Thanks, thats exactly what I need! And yes, we are in the process of making all the new services in OSGi DS annotations and gradually migrating the Apache Felix SCR annotations to the new OSGi DS, but this will help to make it an incremental process instead of having to do

RE: Using OSGi DS and old Apache Felix SCR together

2017-03-16 Thread Stefan Seifert
you should not use the maven-scr-plugin at all in this case - there is a bnd plugin for the old felix SCR annotations that does the same job. so use only maven-bundle-plugin and add an instruction

Re: Using OSGi DS and old Apache Felix SCR together

2017-03-16 Thread Dominik Przybysz
Hi, 1) You can try to set outputDirectory parameter for felix scr plugin and add this directory to bundle ( http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/apache-felix-maven-scr-plugin-use.html ) 2) Why do you mix these two annotations? 2017-03-16 9:02 GMT+01:00

Using OSGi DS and old Apache Felix SCR together

2017-03-16 Thread Roy Teeuwen
Hey all, I am running in a problem when trying to use OSGi DS annotations and Apache Felix annotations together. I have unit tests that depend on the service xml's being present (I am using the Apache Sling osgi-mock to run unit tests), but the problem that I am facing is that when the