Zernikel Stefan created FELIX-5935:
--------------------------------------
Summary: Can't install features with dependencies to sources
manifest-version 1
Key: FELIX-5935
URL: https://issues.apache.org/jira/browse/FELIX-5935
Project: Felix
Issue Type: Bug
Components: Utils
Affects Versions: utils-1.10.4
Environment: karaf 4.2.1
using apache felix framework 5.6.10
and utils version 1.11.0
Reporter: Zernikel Stefan
If I try to install features with Karaf depending on sources with manifest
version 1, I get the following exception:
{code:java}
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
{code}
The source of the problem is about here I guess:
{code:java}
//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);
}{code}
Does Felix not support manifest version 1 any longer?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)