Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Content-Package to Feature Model Converter 1.1.4
-
None
Description
SLING-10223 changed the dependency for osgi from osgi.core to osgi.framework - that one doesn't contain the org.osgi.
packages. Consequently, the converter now fails when it encounters them in manifests like in:
java.lang.NoClassDefFoundError: org/osgi/resource/Capability at org.apache.sling.feature.io.json.ManifestUtils.unmarshalDirective(ManifestUtils.java:45) at org.apache.sling.feature.io.json.FeatureJSONReader.lambda$readRequirements$1(FeatureJSONReader.java:603) at org.apache.sling.feature.io.json.FeatureJSONReader.lambda$rethrowBiConsumer$4(FeatureJSONReader.java:649)
We need to add the osgi.dto and osgi.resource dependencies.
Attachments
Issue Links
- is caused by
-
SLING-10223 org.osgi.framework.Version not contained in lib folder generated from appassembly
- Closed
- links to