Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-456

Missing OSGI Import-Package

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.17
    • Fix Version/s: 1.18
    • Component/s: Build
    • Labels:
      None

      Description

      The configuration of the maven-bundle-plugin overrides the <Import-Package> directive : "*" is not present anymore, and severals packages do not resolve correctly.

      For example, "javax.crypto", which is used by 7z encryption, is not resolved and using this feature fails with a ClassNotFoundException on javax.crypto.SecretKey.

      ahma I think that the correct Import-Package directive should be :

      <Import-Package>*;resolution:=optional</Import-Package>

      this directive will import everything commons-compress depends on, but with an optional resolution (and so every dependencies will be optionals)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jeremie.brebec Jérémie Brébec
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: