Are OSGi annotations-based declarative services fully supported?

Answered

Hello,

I am trying to get a Maven based OSGi project to work properly with IDEA. The project uses OSGi `org.osgi.service.component.annotations` but IDEA is showing the following warnings and errors:

* _Class 'X' is never used_ warning on the components annotated with `@Component`

* _The package 'X.X.X' is not exported by the bundle dependencies_ on service referenced using `@Reference`

* _Method 'X()' is never used_ on the methods annotated with `@Activate`, `@Deactivate` and `@Modified`

The resulting bundles work just fine in Apache Felix.

IDEA seams to understand these annotations but I am not quite sure if it fully supports it.

I have created a minimal project illustrating the problem.

0

Please sign in to leave a comment.