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

maven-bundle-plugin incorrectly handles Bundle-Blueprint instruction

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Maven Bundle Plugin
    • Labels:
      None

      Description

      When the <Bundle-Blueprint> instruction is specified, it cannot handle the formats specified by the OSGi Blueprint specification. Further, when the plugin incorrectly interprets the value of the instruction, it removes it from the resulting manifest.

      Examples of specification issues:

      • The specification states that directories should be terminated with a '/' character. If you do this in the Bundle-Blueprint instruction, the plugin won't find the directory, it won't process any of the Blueprint XML files in any directory, and it won't put the Bundle-Blueprint header in the MANIFEST.MF.
      • The specification allows for wildcard in the last portion of the entry - things like *.xml. If you put a wildcard in the Bundle-Blueprint instruction, it behaves the same way as if the trailing '/' is appended to a directory name.

      Also, the plugin re-writes the Bundle-Blueprint header to include all of the blueprint XML files it finds. I think the plugin should leave the value alone if it is specified. This re-write behavior is breaking my OSGi Fragment bundles.

        Attachments

        1. FELIX_5179.patch
          1 kB
          Quinn Stevenson

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hqstevenson Quinn Stevenson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: