Did you try Import-Package=!java.io <http://java.io/>,* ?
Regards JB > Le 6 mai 2021 à 10:45, Benjamin Graf <benjamin.g...@gmx.net> a écrit : > > Hi JB, > > yes still using 4.2.11. What's the correct syntax to exclude the generation > of java.io import in wrap:mvn:... feature statement? > > Regards > Benjamin > > > Gesendet: Donnerstag, 06. Mai 2021 um 09:25 Uhr > Von: "Jean-Baptiste Onofre" <j...@nanthrax.net> > An: "user" <user@karaf.apache.org> > Betreff: Re: Issue with wrapping jar bundle > Hi Benjamin, > > You can exclude the java.io <http://java.io/> import. Anyway, I guess you are > not using Karaf 4.3.1: I fixed the issue on this release with > https://issues.apache.org/jira/browse/KARAF-7012 > <https://issues.apache.org/jira/browse/KARAF-7012> > > Regards > JB > > Le 6 mai 2021 à 08:10, Benjamin Graf <benjamin.g...@gmx.net > <mailto:benjamin.g...@gmx.net>> a écrit : > > Hi, > > what can I do if wrapping a jar generates import for osgi package "java.io > <http://java.io/>" which can not be resolved. I recognized this issue with > actual oracle ojdbc11 driver. The same works with sibling ojdbc8. > > Thanks for help :) > > Regards > > Benjamin > >