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

Maven-bundle-plugin generates wrong osgi.ee requirement on JDK 10

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • maven-bundle-plugin-3.5.0
    • None
    • Maven Bundle Plugin
    • None

    Description

      When building with JDK 10, maven-bundle-plugin (3.5.1) generates the following manifest attribute:

      Require-Capability: osgi.ee;filter:="(osgi.ee=UNKNOWN)"

      See this post on Stackoverflow for details. According to the answer from BJ Hargrave, I tried adding an explicit dependency to bndlib 4.0 in the plugin declaration in pom.xml, and got the correct attribute in the manifest:

      Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=10.0))"

      It would be great if you could release a version of the plugin with bndlib upgraded to version 4, in order to support JDK 10 without pom.xml hacks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gjoranv Gjøran Voldengen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: