Re: Unable to resolve 'org.osgi.service.component.annotations'

2016-10-19 Thread Toni Menzel
"It's a poor craftsman that blames his tools." - Therefor, use what you want to use ;) And as said, that article i linked should help with your problem. *Toni Menzel* *Developer Advocates - The Rebaze Way * *www.rebaze.de | www.rebaze.com | @reba

Re: Unable to resolve 'org.osgi.service.component.annotations'

2016-10-18 Thread Jens Reimann
Hi Toni, ... I think you can argue about "the right" tool for ages ... I just use what is already there. And I do think that continuing arguing about that will probably kill this thread. On Tue, Oct 18, 2016 at 11:56 AM, Toni Menzel wrote: > If you are serious about OSGi development, try to migr

Re: Unable to resolve 'org.osgi.service.component.annotations'

2016-10-18 Thread Toni Menzel
If you are serious about OSGi development, try to migrate to Bndtools. If you want to keep PDE and use DS, check out this tutorial from Lars Vogel (always good for eclipse specific stuff): http://www.vogella.com/tutorials/OSGiServices/article.html *Toni Menzel* *Developer Advocates - The Rebaze

Re: Unable to resolve 'org.osgi.service.component.annotations'

2016-10-18 Thread Markus Rathgeb
Hi Jens, > So as I understood it the annotations should not be imported. Yes, there is no need to import the component service annotations. As already written, this annotations are used a compile time to generate the XML files for DS. Best regards, Markus

Re: Unable to resolve 'org.osgi.service.component.annotations'

2016-10-18 Thread Jens Reimann
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

Re: Unable to resolve 'org.osgi.service.component.annotations'

2016-10-17 Thread David Jencks
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 > wrote: > > You need to install th

Re: Unable to resolve 'org.osgi.service.component.annotations'

2016-10-17 Thread Toni Menzel
Sure to make it work but are the annotations processed at runtime? Don't hope so. On Monday, 17 October 2016, Christian Schneider 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

Re: Unable to resolve 'org.osgi.service.component.annotations'

2016-10-17 Thread Christian Schneider
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

Re: Unable to resolve 'org.osgi.service.component.annotations'

2016-10-17 Thread Toni Menzel
Hi Jens, org.osgi.service.component.annotations are compile time annotations that should result in a DS xml file in your bundle. To make it more clear: they are processed by your build process and should never appear in your imports. Can you give an example of your project? What bundle plugin are