IDEA, OSGi + maven-bundle-plugin/BND

Answered

Hallo,

I'm quite new to bundling OSGi packages with the maven-bundle-plugin respectively BND. I have some bundle exports in my pom.xml like this one:

com.example.a.*

This works when I deploy my bundle on Karaf 4. But when I reference the class com.example.a.b.Test, e.g. in a config name attribute of a feature in a Karaf feature descriptor IDEA complains that:

The package 'com.example.a.b' is not exported by the bundle dependencies. This isn't true because of the wildcard.

If I additionally export com.example.a.b explicitly the warning goes away.

Is this an issue between IDEA and BND or am I doing something wrong?

Thanks,

mdo

 

4 comments
Comment actions Permalink

In addition: the bundles are within a multi-module Maven project

0
Comment actions Permalink

That's probably a bug on IDEA side. I'm unable to reproduce it locally, though. Could you please attach a small project? And please specify which IDEA version do you use.

0
Comment actions Permalink

Find an example here: https://github.com/dohmen/ideaosgi 

I'm using IntelliJ Ultimate 15.0.3

0
Comment actions Permalink

Thanks, the project helped.

Right, it's a bug in IDEA, will be fixed in the next IDEA 16 EAP.

0

Please sign in to leave a comment.