Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3092

Remove ${services-${karaf.framework}} variables from org.osgi.framework.system.capabilities

    XMLWordPrintableJSON

Details

    Description

      The new versions of Felix maven-bundle-plugin (starting from 2.4.1 and 2.5.0) introduces a osgi.ee requirement in the META-INF generate for the client bundle.

      If it works fine with the Felix framework, this requirement is not match for Equinox framework.

      To avoid this problem, we should modify the etc/config.properties to remove the ${services-${karaf.framework}} variable from org.osgi.framework.system.capabilities, meaning that:

      org.osgi.framework.system.capabilities= \
       ${eecap-${java.specification.version}}, \
       service-reference;effective:=active;objectClass=org.osgi.service.packageadmin.PackageAdmin, \
       service-reference;effective:=active;objectClass=org.osgi.service.startlevel.StartLevel, \
       service-reference;effective:=active;objectClass=org.osgi.service.url.URLHandlers, \
       ${services-${karaf.framework}}
      

      becomes

      org.osgi.framework.system.capabilities= \
       ${eecap-${java.specification.version}}, \
       service-reference;effective:=active;objectClass=org.osgi.service.packageadmin.PackageAdmin, \
       service-reference;effective:=active;objectClass=org.osgi.service.startlevel.StartLevel, \
       service-reference;effective:=active;objectClass=org.osgi.service.url.URLHandlers
      

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              jbonofre Jean-Baptiste Onofré
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: