【发布时间】:2018-10-15 09:42:19
【问题描述】:
我已经在网上搜索过解决方案,但没有一个真正奏效。我正在从 JBossFuse 6.2.1 迁移。到 JbossFuse 6.3.0。这包括升级我管理的大部分依赖项。现在我被这个错误困住了:
执行命令时出错:启动捆绑包时出错:
无法启动捆绑包 390:捆绑包 pipeline-reception-ws-external-cxf [390] 中未解决的约束:无法解决 390.0:缺少要求 [390.0] osgi.wiring.package; (osgi.wiring.package=org.eclipse.jetty.http.ssl)
我正在使用这样配置的 maven-bundle-plugin:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Import-Package>
org.apache.camel.*;version="[${camel.range.start},${camel.range.end})",
ms.common.wsdl,template.velocity,org.eclipse.jetty.server,*
</Import-Package>
<Export-Package>
eu.unicorn.basse.ms.pipeline.reception.route.ws.external.cxf.*
</Export-Package>
<_removeheaders>Import-Service</_removeheaders>
</instructions>
</configuration>
</plugin>
如果它在较旧的 JbossFuse 环境中工作,我不确定为什么它不起作用。问题是,如何解决这个问题。
【问题讨论】:
-
尝试
exports|grep org.eclipse.jetty.http.ssl命令 - 也许有这样的包导出org.eclipse.jetty.http.ssl包,而您根本没有在Import-Package中声明org.eclipse.jetty.http.ssl。 -
maven-bundle-plugin 可以发现很多要导入的包,但不是全部。