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

Improve default Export-Package / Private-Package settings by scanning the project source

    Details

      Description

      The current bundleplugin default for Export-Package is based on the bundle symbolic name, which in turn is based on the Maven groupId and artifactId. While this works for a lot of projects that use the primary package as the bundle symbolic name (or for the Maven metadata) it isn't perfect. I'm thinking of enhancing the bundleplugin to look at the project source to find the main packages in the project, which could be used as the default Export-Package (or possibly Private-Package too).

      The overall goal is to allow people to take a Maven project, change the packaging from "jar" to "bundle" and they'll get the same content. At the moment, because the bundle content is derived from the Export-Package / Private-Package / Include-Resource instructions this may not be the case. We already do this sort of thing for Maven resources -> Include-Resource, so there is a precedent...

        Activity

        Hide
        mcculls Stuart McCulloch added a comment -

        We now base the default Export-Package on the local source files, which makes it much easier to migrate existing Maven projects to OSGi.

        Show
        mcculls Stuart McCulloch added a comment - We now base the default Export-Package on the local source files, which makes it much easier to migrate existing Maven projects to OSGi.
        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:
            mcculls Stuart McCulloch
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development