karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofre ...@nanthrax.net>
Subject Re: [WARNING] Bundle ...: Split package, multiple jars provide the same package:org/apache/karaf/util/tracker?
Date Mon, 13 Jul 2020 04:49:34 GMT
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


Mime
View raw message