can’t you add the -dsannotations-inherit: true flag to the maven-bundle-plugin instructions and get DS inheritance?
david jencks > On Oct 7, 2015, at 12:18 PM, Carsten Ziegeler <[email protected]> wrote: > > Hi > > Am 07.10.15 um 21:07 schrieb Konrad Windszus: >> Hi, >> I am wondering about the future of the maven-scr-plugin. I think it should >> be deprecated and instead the documentation should point to the >> maven-bundle-plugin to be used now even for generating descriptors for >> metatype and declarative services. >> >> That can nowadays take care of generating the component descriptor [0] with >> the OSGi standard annotations [1]. For the metatype generation bnd came up >> with its own annotations[3], which should be a replacement for all >> maven-scr-plugin annotations. > Actually there are standard metatype annotations as well which work > nicely with the new R6 DS annotations. So no need to use proprietary > annotations anymore > >> Also it seems that maven-scr-plugin is not compatible with Declarative >> Services 1.3 (meaning I cannot use "Configuration Property Types”) [3]. > It only supports DS upto 1.2 > >> >> The only thing which is not covered in the maven-bundle-plugin is component >> inheritance (but that is deprecated anyways [4]). > That's why we deprecated it :) > >> Are there any other feature of the maven-scr-plugin which are not covered by >> bnd/maven-bundle-plugin? > Nearly none - we have default properties in the scr plugin, so you can > configure something like the vendor once in your parent pom and it gets > applied to every component. > > The plan is to indeed phase out the maven scr plugin. It still has some > usage, as the bundle plugin is not a dropin replacement. You would need > to rewrite your components - and switching to the official annotations > has some subtle differences in the defaults. > On the other hand, we have a bnd plugin that is able to process the > proprietary Felix annotations. > > Therefore, I totally agree that we should update the documentation. But > of course we have to support our user base for some time. > > Carsten > >> >> My request originates from the discussion at >> https://github.com/bndtools/bnd/issues/999. >> >> WDYT? >> Thanks for any input, >> Konrad >> >> >> [0] - http://www.aqute.biz/Bnd/Components >> [1] - >> https://osgi.org/javadoc/r6/enterprise/org/osgi/service/component/annotations/package-summary.html >> [2] - http://www.aqute.biz/Bnd/MetaType >> [3] - http://njbartlett.name/2015/08/17/osgir6-declarative-services.html >> [4] - https://issues.apache.org/jira/browse/FELIX-4170 >> >> > > > -- > Carsten Ziegeler > Adobe Research Switzerland > [email protected] <mailto:[email protected]>
