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

Missing OSGI Import-Package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.17
    • 1.18
    • Build
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: