title: Karaf wants optional imports?
body: <p>I'm trying to use org.eclipse.persistence.moxy 2.7.4 in Karaf.</p>
  <p>Karaf 4.2.6 is saying:</p>
  <pre><code>Error executing command: Error executing command on bundles:
          Error starting bundle 71: Unable to resolve HelloWorld [71](R 71.0): missing requirement [HelloWorld [71](R 71.0)] osgi.wiring.package; (osgi.wiring.package=com.sun.codemodel) Unresolved requirements: [[HelloWorld [71](R 71.0)] osgi.wiring.package; (osgi.wiring.package=com.sun.codemodel)]
  </code></pre>
  <p>I think this is because moxy's META-INF includes:</p>
  <pre><code>Manifest-Version: 1.0
  Bundle-SymbolicName: org.eclipse.persistence.moxy
  Require-Bundle: org.eclipse.persistence.core;bundle-version=&quot;2.7.4&quot;;visibility:=reexport,org.eclipse.persistence.asm;bundle-version=&quot;7.0.0&quot; ;resolution:=optional
  Bundle-ManifestVersion: 2
  Bundle-Vendor: Eclipse.org - EclipseLink Project
  Import-Package: com.sun.xml.bind;resolution:=optional,com.sun.xml.bind.annotation;resolution:=optional,com.sun.xml.bind.api;resolution:=optional,com.sun.xml.bind.api.impl;resolution:=optional,com.sun.codemodel;resolution:=optional;version=&quot;[2.2.11,3)&quot;
  Bundle-Name: EclipseLink MOXy
  Bundle-Version: 2.7.4.v20190115-ad5b7c6b2a
  </code></pre>
  <p>Note <code>com.sun.codemodel;resolution:=optional;version=&quot;[2.2.11,3)</code></p>
  <p>But it says &quot;resolution:=optional&quot;.  So why is this an unresolved requirement, and how can I make karaf treat it as optional?</p>