Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-954

Import-Package should include packages from optional Maven dependencies with resolution=optional

    XMLWordPrintableJSON

Details

    Description

      It would be great if maven-bundle-plugin used resolution=optional for packages that are coming from optional Maven dependencies.

      The current behavior causes problems e.g. when embedding libraries with lots of optional dependencies. As described by Detelin Yordanov: "[I]t seems that BND finds the
      references to [the optional packages] and assumes them to be mandatory adding a bunch of imports in the manifest." This can easily result in hundreds of import-package declarations importing packages that are actually not required by the application. In these cases it is not practical to handle this manually in the plug-in / BND configuration.

      This issue was already discussed on felix-users list in Jan 2009 – see thread "Maven bundle plugin: Is it possible to mark optional Maven dependencies to be imported with resolition=optional"
      http://mail-archives.apache.org/mod_mbox/felix-users/200901.mbox/%3C81f0d9c0901280604x6097dc19r8aa460673bfdad6@mail.gmail.com%3E

      Attachments

        Activity

          People

            Unassigned Unassigned
            pjuhos Pavol Juhos
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: