Hi,
Shell core should be imported but util is not a bundle, so it should be private.
Regards
JB
> Le 11 juil. 2020 à 23:21, Paul Spencer <paulspencer@mindspring.com> a écrit :
>
> Karaf 4.2.9
> I am receiving the following warning for bundles that exposes a services and commands.
>
>> [WARNING] Bundle ...: Split package, multiple jars provide the same package:org/apache/karaf/util/tracker
>> Use Import/Export Package directive -split-package:=(merge-first|merge-last|error|first)
to get rid of this warning
>> Package found in [Jar:org.apache.karaf.util, Jar:org.apache.karaf.shell.core]
>
> I am including both dependencies with the default scope as they are need to compile.
> <dependency>
> <groupId>org.apache.karaf</groupId>
> <artifactId>org.apache.karaf.util</artifactId>
> </dependency>
> <dependency>
> <groupId>org.apache.karaf.shell</groupId>
> <artifactId>org.apache.karaf.shell.core</artifactId>
> </dependency>
>
> How should resolve the warning?
>
> Paul Spencer
|