Details
Description
If I try to install features with Karaf depending on sources with manifest version 1, I get the following exception:
org.osgi.framework.BundleException: Unable to build resource for mvn:<placeholder>: 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:<placeholder>: Unsupported 'Bundle-ManifestVersion' value: 1
The source of the problem is about here I guess:
//Verify that only manifest version 2 is specified. String manifestVersion = getManifestVersion(headerMap); if (manifestVersion == null || !manifestVersion.equals("2")) { throw new BundleException("Unsupported 'Bundle-ManifestVersion' value: " + manifestVersion); }
Does Felix not support manifest version 1 any longer?