由于 Karaf 中 jackson.annotation 的依赖冲突,无法解析包
Unable to resolve bundle because of dependency conflict for jackson.annotation in Karaf
启动捆绑包 (basecomponent
) 的某个时候,我收到以下错误。似乎是因为 fasterxml.jackson.annotations
的两个不同版本。 basecomponent
捆绑包正在使用 fasterxml.jackson.annotations
2.7.4。 basecomponent
bundle 也在使用 camel-aws
可能正在使用 fasterxml.jackson.annotation
2.5.0.
smx@root>bundle:start 277
Error executing command: Error executing command on bundles:
Unable to execute command on bundle 277: Uses constraint violation. Unable to resolve bundle revision basecomponent [277.0] because it is exposed to package 'com.fasterxml.jackson.annotation' from bundle revisions com.fasterxml.jackson.core.jackson-annotations [284.0] and com.fasterxml.jackson.core.jackson-annotations [125.0] via two dependency chains.
Chain 1:
basecomponent [277.0]
import: (&(osgi.wiring.package=com.fasterxml.jackson.annotation)(version>=2.7.0)(!(version>=3.0.0)))
|
export: osgi.wiring.package=com.fasterxml.jackson.annotation
com.fasterxml.jackson.core.jackson-annotations [284.0]
Chain 2:
basecomponent [277.0]
import: (osgi.wiring.package=com.amazonaws)
|
export: osgi.wiring.package=com.amazonaws; uses:=com.fasterxml.jackson.annotation
org.apache.servicemix.bundles.aws-java-sdk [254.0]
import: (&(osgi.wiring.package=com.fasterxml.jackson.annotation)(version>=2.5.0)(!(version>=3.0.0)))
|
export: osgi.wiring.package=com.fasterxml.jackson.annotation
com.fasterxml.jackson.core.jackson-annotations [125.0]
有人可以告诉我如何解决这种依赖冲突吗?我在 Servicemix 6.1.0
.
下使用 Karaf 3.0.5
运行
正如 Karaf Mailing List 中所建议的那样。移动到 Karaf 4.0.5
(在 Servicemix 7.0.0.M2
下)并在 feature.xml
中设置 dependency=true
我现在没有观察到这个问题。
启动捆绑包 (basecomponent
) 的某个时候,我收到以下错误。似乎是因为 fasterxml.jackson.annotations
的两个不同版本。 basecomponent
捆绑包正在使用 fasterxml.jackson.annotations
2.7.4。 basecomponent
bundle 也在使用 camel-aws
可能正在使用 fasterxml.jackson.annotation
2.5.0.
smx@root>bundle:start 277
Error executing command: Error executing command on bundles:
Unable to execute command on bundle 277: Uses constraint violation. Unable to resolve bundle revision basecomponent [277.0] because it is exposed to package 'com.fasterxml.jackson.annotation' from bundle revisions com.fasterxml.jackson.core.jackson-annotations [284.0] and com.fasterxml.jackson.core.jackson-annotations [125.0] via two dependency chains.
Chain 1:
basecomponent [277.0]
import: (&(osgi.wiring.package=com.fasterxml.jackson.annotation)(version>=2.7.0)(!(version>=3.0.0)))
|
export: osgi.wiring.package=com.fasterxml.jackson.annotation
com.fasterxml.jackson.core.jackson-annotations [284.0]
Chain 2:
basecomponent [277.0]
import: (osgi.wiring.package=com.amazonaws)
|
export: osgi.wiring.package=com.amazonaws; uses:=com.fasterxml.jackson.annotation
org.apache.servicemix.bundles.aws-java-sdk [254.0]
import: (&(osgi.wiring.package=com.fasterxml.jackson.annotation)(version>=2.5.0)(!(version>=3.0.0)))
|
export: osgi.wiring.package=com.fasterxml.jackson.annotation
com.fasterxml.jackson.core.jackson-annotations [125.0]
有人可以告诉我如何解决这种依赖冲突吗?我在 Servicemix 6.1.0
.
Karaf 3.0.5
运行
正如 Karaf Mailing List 中所建议的那样。移动到 Karaf 4.0.5
(在 Servicemix 7.0.0.M2
下)并在 feature.xml
中设置 dependency=true
我现在没有观察到这个问题。