Hi,
This kind of "Package uses conflict" comes from the scenario like,
let's say,
bundle A import-package org.osgi.service.blueprint;
version="[1.0.0,2.0.0)", bundle A also import-package x.y.z
bunde B export-package x.y.z with "use" directive like
uses:="org.osgi.service.blueprint; version="[2.0.0,3.0.0)""
Let's say bundle B already get resolved and started.
When resolve bundle A, it will use export-package x.y.z from bundle B,
but as bundle B export-package x.y.z
uses:="oorg.osgi.service.blueprint; version="[2.0.0,3.0.0)" and bundle
B get resolved to import org.osgi.service.blueprint;
version="[2.0.0,3.0.0), so it's not meet bundle A's restriction which
need org.osgi.service.blueprint; version="[1.0.0,2.0.0)(notice the
version mismatch between the two), then you see such exception.
The root cause is that you install some bundles which need different
org.osgi.service.blueprint versions, also those bundles has dependency
with each other, you need figure it out from your bundles and fix it.
Freeman
On 2011-11-23, at 上午11:36, XiLai Dai wrote:
Hello,
We have a bundle with blueprint (OSGI-INF/blueprint/xxx.xml) and
build with maven-bundle-plugin.
The META-INF/ MANIFEST.MF contains:
......
Import-
Package: ...,org.osgi.service.blueprint;version="[1.0.0,2.0.0)",...
When install this bundle into Karaf 2.2.4, got error:
Reason: Package uses conflict: Im port-Package:
org.osgi.service.blueprint; version="[1.0.0,2.0.0)"
Why it complains there has conflict?
Thanks.
Xilai
---------------------------------------------
Freeman Fang
FuseSource
Email:ff...@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com