【发布时间】:2018-06-21 11:46:28
【问题描述】:
我正在尝试使用功能安装我的 apache camel 应用程序的最新版本:在 Karaf 上安装 这个新版本依赖于 org.apache.commons.configuration ver 1.9 但出现以下错误
错误:
Error executing command: Could not start bundle mvn: in feature(s)<package> : Unresolved constraint in bundle <bundle> [414]: Unable to resolve 414.0: missing requirement [414.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.configuration)(version>=1.9.0)(!(version>=2.0.0)))
我已经将它包含在 pom.xml 中
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.9</version>
</dependency>
也尝试了sof中建议的几种方法,但没有一个有效
也将for org.apache.commons.configuration 放在plugins 下
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Import-Package>
org.apache.cxf.service.model,
org.apache.cxf.message,
org.apache.commons.configuration,
*
</Import-Package>
</instructions>
</configuration>
</plugin>
但仍然无法解决。有人可以帮忙解决这个问题吗?
谢谢
【问题讨论】:
-
将此捆绑包添加到您自己的功能文件中,以便与您的应用程序一起安装。
-
嗨@ClausIbsen,你能解释一下吗..我是Apache Camel和Karaf的新手。哪个捆绑包?以及如何添加到自己的功能文件中?谢谢
-
你在 features 中输入什么命令:install 来安装你的应用程序。
标签: maven apache-camel osgi apache-karaf karaf