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

Export-Package version inconsistencies.

    Details

      Description

      The version associated with an Export-Package statement can vary depending on the method used to create it. In both cases, the input is identical, but the output is not.

      Case 1: Created from packageinfo files in the source tree. In this case, the input of "1.0.0-SNAPSHOT" will be shortened down to "1.0.0".
      Case 2: Created from an Export-Package directive. In this case, the input of "1.0.0-SNAPSHOT" will be converted to 1.0.0.SNAPSHOT".

      I will attach a small sample project that demonstrates the behavior.

      1. bugtest.tar.gz
        2 kB
        Thomas Dewire

        Activity

        Hide
        tomdewire Thomas Dewire added a comment -

        For this issue, please refer to the 'bugtest1' project, and read the comments in the pom.

        Show
        tomdewire Thomas Dewire added a comment - For this issue, please refer to the 'bugtest1' project, and read the comments in the pom.
        Hide
        mcculls Stuart McCulloch added a comment -

        This just missed the 1.4.1 release and will require a fix to the Bnd library, as it currently trims packageinfo versions instead of munging them like it does with versions from Export-Package (I'll send a note to PeterK)

        Show
        mcculls Stuart McCulloch added a comment - This just missed the 1.4.1 release and will require a fix to the Bnd library, as it currently trims packageinfo versions instead of munging them like it does with versions from Export-Package (I'll send a note to PeterK)
        Hide
        mcculls Stuart McCulloch added a comment -

        Quick update - I haven't had time to progress these issues because I've been working at a customer site - but I hope to devote some cycles when I'm back in Malaysia next week. If any of these need fixing urgently feel free to keep bugging me until they're fixed

        Show
        mcculls Stuart McCulloch added a comment - Quick update - I haven't had time to progress these issues because I've been working at a customer site - but I hope to devote some cycles when I'm back in Malaysia next week. If any of these need fixing urgently feel free to keep bugging me until they're fixed
        Hide
        mcculls Stuart McCulloch added a comment -

        This fix will require a change to the BND library, so moving it to target release 1.4.3 of the bundleplugin

        Show
        mcculls Stuart McCulloch added a comment - This fix will require a change to the BND library, so moving it to target release 1.4.3 of the bundleplugin
        Hide
        mcculls Stuart McCulloch added a comment -

        Ran bugtest1 against trunk and it now works as expected, will deploy a new 1.5.0-SNAPSHOT for testing tomorrow morning (8hrs from now).

        Show
        mcculls Stuart McCulloch added a comment - Ran bugtest1 against trunk and it now works as expected, will deploy a new 1.5.0-SNAPSHOT for testing tomorrow morning (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:
            tomdewire Thomas Dewire
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development