IDEA, OSGi + maven-bundle-plugin/BND
已回答
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
请先登录再写评论。
In addition: the bundles are within a multi-module Maven project
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.
Find an example here: https://github.com/dohmen/ideaosgi
I'm using IntelliJ Ultimate 15.0.3
Thanks, the project helped.
Right, it's a bug in IDEA, will be fixed in the next IDEA 16 EAP.