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

SCR bnd plugin fails when embedding jars with optional/excluded dependencies

    XMLWordPrintableJSON

    Details

      Description

      when the maven-bundle-plugin is used to embedded JAR dependencies, and those dependencies contain optional or excluded further dependencies which classes are somewhere references in the dependency itself SCR generation via maven-bundle-plugin and the SCR bnd plugin fails.

      it does not fail when using the maven-scr-plugin.

      the reason for the difference is that the maven-scr-plugin analyzes only the classes compiled in the target folder, not the classes of embedded dependencies. the bnd plugin cannot differentiate if the classes in the bundle jar where embedded or compiled and always scans all of them.

        Attachments

        1. FELIX-5452.patch
          1 kB
          Stefan Seifert

          Activity

            People

            • Assignee:
              cziegeler Carsten Ziegeler
              Reporter:
              sseifert Stefan Seifert
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: