Karl Pauls created SLING-10460:
----------------------------------

             Summary: Contenpackage Converter needs osgi.resource and osgi.dto 
on the classpath
                 Key: SLING-10460
                 URL: https://issues.apache.org/jira/browse/SLING-10460
             Project: Sling
          Issue Type: Bug
          Components: Content-Package to Feature Model Converter
    Affects Versions: Content-Package to Feature Model Converter 1.1.4
            Reporter: Karl Pauls
            Assignee: Karl Pauls
             Fix For: Content-Package to Feature Model Converter 1.1.6


SLING-10223 changed the dependency for osgi from osgi.core to osgi.framework - 
that one doesn't contain the org.osgi.{dto,resource} packages. Consequently, 
the converter now fails when it encounters them in manifests like in:


{noformat}
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)
{noformat}

We need to add the osgi.dto and osgi.resource dependencies.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to