You need a build plugin that understands how to turn the OSGi annotations into the XML descriptors inside the resulting jar (bundle).
Which OSGi bundle building plugin are you using? - Ray On Thu, Apr 4, 2019 at 10:19 AM Davi Baldin Tavares <davi.bal...@gmail.com> wrote: > Hello, > > I’m trying to move to DS Annotation. > > My Class: > > import org.osgi.service.component.annotations.Component; > > @Component(name = "ZPluginProvider Service", immediate = true, service = > ZPluginProvider.class) > public class ZPluginProvider { … } > > I’ve deployed these bundles: > > org.apache.felix.scr-2.1.16 > org.apache.felix.scr.annotations-1.12.0 > org.apache.felix.scr.ds-annotations-1.2.10 > org.osgi.util.function-1.1.0 > org.osgi.util.promise-1.1.1 > > However the deployment is not being successfully on > org.osgi.service.component.annotations completed because of: > > 1) org.osgi.service.component.annotations-1.4.0 is missing osgi.unresolved > or > 2) org.osgi.service.component.annotations-1.3.0 is missing > osgi.compile.time.only > > Do someone happen to know witch bundles must I have to deploy along Felix > in order to enable declarative services with annotations? > > Thanks, > > Davi > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > > -- *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile> (@rotty3000) Senior Software Architect *Liferay, Inc.* <http://www.liferay.com> (@Liferay) Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)