Open anatol-sialitski opened 4 weeks ago
@anatol-sialitski is that related to your work on this PR: https://github.com/apache/unomi/pull/562 ?
Yes, it is. But you can contact @sergehuber to discuss it with him. Maybe we can solve it another way by adding extra configuration for Karaf in Unomi project.
Did you considere using the bnd tool option : -noimportjava: true ? That may need to upgrade gradle dependencies for OSGI to : classpath 'biz.aQute.bnd:biz.aQute.bnd.gradle:7.0.0' (...) compileOnly 'org.osgi:org.osgi.service.component:1.5.1' compileOnly 'org.osgi:org.osgi.service.component.annotations:1.5.1' compileOnly 'biz.aQute.bnd:biz.aQute.bndlib:7.0.0'
Anyway, the OSGI framework (depending on its version) should export all related java.* packages allowing any bundle to import them. Maybe the problem relates to Karaf in that particular case. ( https://github.com/bndtools/bnd/issues/2507)
Yes, we are going to look at the configuration more closely, as I mentioned above :)
Thank you for your advice! I tried to use that in our Karaf feature.xml, but it didn’t help.
<bundle start-level="80">wrap:mvn:io.github.graphql-java/graphql-java-annotations/${graphql.java.annotations.version}$Import-Package=!java.*,*</bundle>
An upgrade of Karaf version in unomi is also something to investigate ; this would solve other issues (security) on current version and maybe also the export of java.* packages
To avoid an issue