Uploaded image for project: 'Opencast'
  1. MH-10891

Add explicit import statements to OSGi manifest

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed and reviewed
    • Affects versions: None
    • Fix versions: None
    • Components: Backend Software

      Description

      Many of the bundles have a statement like this in their maven-bundle-plugin configuration:

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

      The result is that no package is required for a bundle to start. It is recommended to not rely on optional packages. Therefore the configuration should be changed to explicitly import all required packages. Instead of manually listing them, one can still rely on the output of the underlying BND tool and exclude unnecessary packages, example:

      <Import-Package>
        !com.sun.*,
        *
      </Import-Package>
      

        TestRail: Results

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                basil.brunner Basil Brunner
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  TestRail: Cases