You can use the maven scr plugin for the annotations defined in the OSGi Declarative Services spec as well: http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/apache-felix-maven-scr-plugin-use.html
Carsten 2014-03-17 10:04 GMT-07:00 Scott England-Sullivan <[email protected]>: > Hi Jorge, > > I don't know about the Felix annotations but the Maven Bundle Plugin > <Service-Component>*</Service-Component> will support the OSGi spec > annotations. > > Thanks, > Scott ES > > > > On Mon, Mar 17, 2014 at 11:09 AM, bokie <[email protected]> wrote: > > > Hi, > > > > From what I can gather from searching how to process DS annotations > during > > a > > Maven build, there is currently two possible solutions: > > 1. Use the annotations in the *org.apache.felix.scr.annotations* package > > along with the *org.apache.felix:maven-scr-plugin* plugin. > > 2. Use the annotations in the *aQute.bnd.annotation.component* package > > along with the *<Service-Component>* element in the > > *org.apache.felix:maven-bundle-plugin* plugin. > > > > I couldn't find any way of doing the same thing using the annoations in > the > > *org.osgi.service.component.annotations* package - is my research > accurate? > > > > Thanks, > > Jorge > > > > > > > > -- > > View this message in context: > > > http://apache-felix.18485.x6.nabble.com/Maven-and-declarative-services-tp5007718.html > > Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > > -- > -- > Scott England-Sullivan > Apache Camel Committer > Principal Consultant / Sr. Architect | Red Hat, Inc. > FuseSource is now part of Red Hat > Web: fusesource.com <http://www.fusesource.com> | > redhat.com<http://www.redhat.com> > Blog: sully6768.blogspot.com > Twitter: sully6768 > -- Carsten Ziegeler [email protected]

