One option is to use the Apache Felix SCR plugin with the DS annotations: http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/apache-felix-maven-scr-plugin-use.html
As the SCR plugin does not support the R6 features, you should be fine. Regards Carsten 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 > -- Carsten Ziegeler Adobe Research Switzerland [email protected] _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
