I am sorry I am not using "bnd" ... I am using Eclipse PDE and there you need to add the package import in order for the annotations to appear on the classpath. There are other ways as well, but to me importing a package with OSGi seemed to be the most appropriate way. And the SCR implementation of Equinox seems to export those annotation as expected (by me, I know).
Installing the "scr" feature does not help though. So as I understood it the annotations should not be imported. On Mon, Oct 17, 2016 at 8:38 PM, David Jencks <david.a.jen...@gmail.com> wrote: > Why? these are the OSGI spec annotations processed by bnd. > > They are not used at runtime and there should be no such wiring > requirement. Perhaps the bnd instructions say to import the package? > > david jencks > > On Oct 17, 2016, at 7:31 AM, Christian Schneider <ch...@die-schneider.net> > wrote: > > You need to install the scr feature. > > Christian > > On 17.10.2016 15:05, Jens Reimann wrote: > > Hi, > > using the SCR annotations and trying perform "mvn verify" on a feature > referencing this bundle results in the following resolution error: > > --- > osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service. > component.annotations)(version>=1.2.0))" > --- > > Having a look at a possible candidate for this (org.apache.felix : > org.apache.felix.scr.annotations : 1.11.0) I find that this bundle is not > a bundle and has no OSGi metadata. > > I am probably doing something wrong. But what is it? > > Thanks for your help > > Cheers > > Jens > > -- > Jens Reimann > Senior Software Engineer / EMEA ENG Middleware > Werner-von-Siemens-Ring 14 > 85630 Grasbrunn > Germany > phone: +49 89 2050 71286 > ____________________________________________________________ > _________________ > > Red Hat GmbH, www.de.redhat.com, > Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB > 153243, > Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham, > Michael O'Neill > > > > -- > Christian Schneiderhttp://www.liquid-reality.de > > Open Source Architecthttp://www.talend.com > > > -- Jens Reimann Senior Software Engineer / EMEA ENG Middleware Werner-von-Siemens-Ring 14 85630 Grasbrunn Germany phone: +49 89 2050 71286 _____________________________________________________________________________ Red Hat GmbH, www.de.redhat.com, Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243, Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham, Michael O'Neill