2016-02-01 15:02:19,152 | ERROR | FelixStartLevel | BootFeaturesInstaller | 20 - org.apache.karaf.features.core - 3.0.5 | Error installing boot features
java.lang.Exception: Could not start bundle mvn:com.fasterxml.jackson.module/jackson-module-scala_2.11/2.6.2 in feature(s) de-support-0.0.0, swagger-2.11-6.1.0: Unresolved constraint in bundle com.fasterxml.jackson.module.jackson.module.scala [274]: Unable to resolve 274.0: missing requirement [274.0] osgi.wiring.package; (&(osgi.wiring.package=com.fasterxml.jackson.module.paranamer)(version>=2.6.0)(!(version>=3.0.0)))
我正在超越异常,甚至在提供
后启动karaf<bundle>mvn:com.fasterxml.jackson.module/jackson-module-scala_2.11/2.6.2</bundle>
在features.xml文件中。
答案 0 :(得分:1)
您收到此消息是因为您的某个软件包导入了com.fasterxml.jackson.module.paranamer软件包,但您的功能中没有包含导出此软件包的软件包。搜索com.fasterxml.jackson.module.paranamer会显示Jackson Paranamer的pom,这表明它导出了您需要的包(查看osgi.export属性)。所以添加:
<bundle>mvn:com.fasterxml.jackson.module/jackson-module-paranamer/2.6.2</bundle>
到feature.xml中的功能