Maven OSGi使用约束冲突

Maven OSGi使用约束冲突,maven,osgi,bundle,fuseesb,jbossfuse,Maven,Osgi,Bundle,Fuseesb,Jbossfuse,我尝试在FUSE ESB OSGi容器中启动Maven创建的包。但我在它的三个依赖项上犯了错误: 1. libthrift-0.7.0.jar 2. httpclient-4.0.1.jar 3. httpcore-4.0.1.jar Error executing command: Error starting bundles: Unable to start bundle 262: Uses constraint violation. Unable to resolve bundle r

我尝试在FUSE ESB OSGi容器中启动Maven创建的包。但我在它的三个依赖项上犯了错误:

1. libthrift-0.7.0.jar
2. httpclient-4.0.1.jar
3. httpcore-4.0.1.jar

Error executing command: Error starting bundles:
Unable to start bundle 262: Uses constraint violation. Unable to resolve bundle 
revision file__opt_FuseESBEnterprise-7.1.0_deploy_libthrift-0.7.0.jar [316.0]
because it is exposed to package 'org.apache.http' from bundle revisions 
org.apache.httpcomponents.httpcore [291.0] and org.apache.httpcomponents.httpclient     
[290.0] via two dependency chains.

Chain 1:
 file__opt_FuseESBEnterprise-7.1.0_deploy_libthrift-0.7.0.jar [316.0]
import: (osgi.wiring.package=org.apache.http)
 |
export: osgi.wiring.package=org.apache.http
org.apache.httpcomponents.httpcore [291.0]

Chain 2:
file__opt_FuseESBEnterprise-7.1.0_deploy_libthrift-0.7.0.jar [316.0]
import: (osgi.wiring.package=org.apache.http.client)
 |
export: osgi.wiring.package=org.apache.http.client; uses:=org.apache.http
export: osgi.wiring.package=org.apache.http
org.apache.httpcomponents.httpclient [290.0]

有人能解释一下这个错误是怎么回事吗?

您是如何安装http核心和客户端捆绑包的

您可以尝试将camel-http4作为一项功能安装,因为它提供了现成的http客户端

features:install camel-http4

然后再安装你自己的包。

阅读我的博客文章,了解OSGi中“使用约束”的解释:谢谢你的帖子Neil。现在我发现问题出在
apache.http
上,它与示例中所示的
ulti.verify
类似。在您的帖子中,您通过删除重复内容给出了解决方案。但我想知道如何删除它。通过更改清单中的导出?