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

OSGi Manifest requires optional dependency commons-codec

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.26.0
    • 1.26.1
    • Build
    • None

    Description

      Since version 1.26, commons-compress optionally requires commons-codec.

      In the OSGi-Manifest, the Import-Package declaration for org.apache.commons.codec does not have the resolution:=optional attribute.

       

      In our case, we have commons-compress as maven dependency. Since commons-codec is an optional dependency, it is not downloaded automatically. But when we start our application, we get an OSGi error that commons-codec cannot be resolved.

       

       

      To fix this issue, the Import-Package delcaration to all apache.commons.compress packages has to be marked with resolution:=optional in META-INF/MANIFEST.MF.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            cloy_vector Christoph Loy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment