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

Manifest goal ignores version attribute specified in _exportcontents

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: maven-bundle-plugin-1.4.3
    • Fix Version/s: maven-bundle-plugin-2.0.0
    • Component/s: Maven Bundle Plugin
    • Labels:
      None
    • Environment:
      OpenSolaris, JDK 1.5

      Description

      I am using maven-bundle-plugin version 1.4.3. We use the manifest goal and configure the plugin to read bnd instructions from a file called osgi.bundle like this:
      <_include>-$

      {basedir}

      /osgi.bundle</_include>

      In thet artifact's osgi.bundle file, we use _exportcontents to list the packages to be exported. I am observing that even if I set a version attribute explicitly as part of _exportcontents instruction, the generated Export-Package headers in the manifest always contains version as 3.0-Prelude-SNAPSHOT, which is the version of the artifact being built. If I switch to using Export-Package, the generated manifest contains whatever version I specify in the osgi.bundle file. This looks like a bug to me.

        Activity

        Hide
        mcculls Stuart McCulloch added a comment -

        My local tests suggest this has been fixed by the changes in trunk, which include an update to BND.
        I haven't deployed a new 1.5.0-SNAPSHOT, but will do so tomorrow morning (about 8hrs from now).

        Show
        mcculls Stuart McCulloch added a comment - My local tests suggest this has been fixed by the changes in trunk, which include an update to BND. I haven't deployed a new 1.5.0-SNAPSHOT, but will do so tomorrow morning (about 8hrs from now).
        Hide
        mcculls Stuart McCulloch added a comment -

        Closing as maven-bundle-plugin 2.0.0 has been released.

        Show
        mcculls Stuart McCulloch added a comment - Closing as maven-bundle-plugin 2.0.0 has been released.

          People

          • Assignee:
            mcculls Stuart McCulloch
            Reporter:
            sahoo Sahoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development