Karaf功能:安装会抛出不受支持的“ Bundle-ManifestVersion”值:1

时间:2018-09-20 14:50:13

标签: karaf camunda

我是Karaf的新手,正在尝试学习如何处理它。 在我尝试添加Camunda功能的途中。 如https://github.com/camunda/camunda-bpm-platform-osgi/tree/master/camunda-bpm-karaf-feature

所述

首先,我添加了仓库:

feature:repo-add mvn:org.camunda.bpm.extension.osgi/camunda-bpm-karaf-feature/4.1.0/xml/features

然后我尝试安装它们;

feature:install camunda-bpm-karaf-feature-full

不幸的是我遇到了这个异常

org.osgi.framework.BundleException: Unable to build resource for mvn:xmlpull/xmlpull/1.1.3.1: Unsupported 'Bundle-ManifestVersion' value: 1
at org.apache.felix.utils.resource.ResourceBuilder.build(ResourceBuilder.java:82)
at org.apache.felix.utils.resource.ResourceBuilder.build(ResourceBuilder.java:67)
at org.apache.karaf.features.internal.region.SubsystemResolver.prepare(SubsystemResolver.java:180)
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:379)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Caused by: org.osgi.framework.BundleException: Unsupported 'Bundle-ManifestVersion' value: 1
    at org.apache.felix.utils.resource.ResourceBuilder.doBuild(ResourceBuilder.java:90)
    at org.apache.felix.utils.resource.ResourceBuilder.build(ResourceBuilder.java:80)
    ... 9 more
Error executing command: Unable to build resource for mvn:xmlpull/xmlpull/1.1.3.1: Unsupported 'Bundle-ManifestVersion' value: 1

我正在使用Karaf版本4.2.1 有人知道我在做什么错吗?

1 个答案:

答案 0 :(得分:0)

其中一个功能取决于MANIFEST.MF中具有Manifest-Version: 1.0的{​​{3}},因此使其成为OSGi R3捆绑软件。

Apache Felix仅支持符合OSGi Release 4(或更高版本)(Manifest-Version: 2.0)的捆绑软件,这就是为什么它拒绝xmlpull的原因。请参阅Felix xmlpull 1.1.3.1以供参考。

如果您控制源代码,请考虑包装xmlpull并从功能部件安装包装的包。您也可以在Karaf控制台上玩耍。例如install -s wrap:mvn:xmlpull/xmlpull/1.1.3.1