BTW - I'm using Karaf 4.1.4 when I get this...

Thanks,
Ryan

On Fri, Jan 26, 2018 at 9:40 AM Ryan Moquin <fragility...@gmail.com> wrote:

> I keep running into situations where I get a uses constraint, but the
> complaint is talking about an import and export chain that involve the
> exact same dependency, such as with Guava below... why is this a uses
> constraint and how do you deal with it?
>
> Error executing command: Uses constraint violation. Unable to resolve
> resource com.rkmoquin.common [com.rkmoquin.common/1.0.0.SNAPSHOT] because
> it is exposed to package 'com.google.common.base' from resources
> com.google.guava [com.google.guava/20.0.0] and com.google.guava
> [com.google.guava/20.0.0] via two dependency chains.
>
> Chain 1:
>   com.rkmoquin.common [com.rkmoquin.common/1.0.0.SNAPSHOT]
>     import:
> (&(osgi.wiring.package=com.google.common.base)(version>=20.0.0)(!(version>=21.0.0)))
>      |
>     export: osgi.wiring.package: com.google.common.base
>   com.google.guava [com.google.guava/20.0.0]
>
> Chain 2:
>   com.rkmoquin.common [com.rkmoquin.common/1.0.0.SNAPSHOT]
>     import:
> (&(osgi.wiring.package=com.google.common.collect)(version>=20.0.0)(!(version>=21.0.0)))
>      |
>     export: osgi.wiring.package: com.google.common.collect;
> uses:=com.google.common.base
>     export: osgi.wiring.package=com.google.common.base
>   com.google.guava [com.google.guava/20.0.0]
>
> Thanks for any help!
> Ryan
>

Reply via email to