I think I found the answer: I need to use the bnd annotations jar.
<dependency>
<groupId>biz.aQute.bnd</groupId>
<artifactId>biz.aQute.bnd.annotation</artifactId>
<version>3.1.0</version>
</dependency>
It seems to contain the DS 1.2 annotations.
Christian
On 17.02.2016 12:53, Christian Schneider wrote:
I am currently starting to migrate Apache Karaf decanter to use DS
instead of plain OSGi API.
Ideally I would like to use the standardized annotations.
Unfortunately we need to be able to deploy to karaf versions that do
not yet include felix scr 2.
If I use the annotations from OSGi 6 then the maven bundle plugin
creates DS xml with namespace 1.3.0
so I think this will not work with scr 1.8.2.
I know I can easily use the felix scr annotations but then I will have
to switch to the standard annoations at some later point.
So is it possible to use the standard annotations but still run on the
old scr?
It is fine if I have to sacrifice the new features in DS 1.3.0
features like field injection or type safe configs.
Christian
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev