You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by JCR <jc...@proxymit.net> on 2020/04/16 09:06:03 UTC

OSGi annotations in Sling

Hello

After the presos of Chris Schneider and Carsten Ziegeler at adaptTo() 
2019, I was under the impression that OSGi Descriptive Services are 
fully supported with Sling 11 and the Sling IDE tools plugin in its 
current version 1.2.2.
Subsequently, this created a pretty long thread at sling's users mailing 
list as I succeeded to deploy new bundles in Felix, but not in exporting 
the java packages, even using @Version annotation and package-info.java.

Now I hear from Chris that the bnd-maven-plugin V 3.5, supplied by the 
Sling IDE tools plugin for Eclipse and declared in the pom as 
dependency, is too old to do the export packages job.

Can anybody confirm this? Will this be upgraded any time soon with a new 
version of the Eclipse plugin?

Thanks,
Juerg



Re: OSGi annotations in Sling

Posted by Robert Munteanu <ro...@apache.org>.
Hello Juerg,

On Thu, 2020-04-16 at 11:06 +0200, JCR wrote:
> Now I hear from Chris that the bnd-maven-plugin V 3.5, supplied by
> the 
> Sling IDE tools plugin for Eclipse and declared in the pom as 
> dependency, is too old to do the export packages job.

The Maven dependencies used by the Sling IDE tooling for Eclipse are
used for building the IDE plugin, not your project. Your project will
use whatever it declared in its pom.

If in doubt, try building your project from the command-line. If it
works on the CLI and not in Eclipse, that's a bug.

Thanks,
Robert