Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9425

Analyser fails when bundle requires Java 11

    XMLWordPrintableJSON

Details

    Description

      I am trying to build an app with the feature model and Java 11. The app is a a single project which produces the bundle and the feature model.

      When building the app the analyser fails with

      [ERROR] Artifact FOO requires [FOO] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))" in start level 0 but no artifact is providing a matching capability in this start level.

      I was able to cheat my way out of this by providing a static capability for the framework:

      org.osgi.framework.system.capabilities": "osgi.ee; osgi.ee=\"JavaSE\";version:List=\"1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9,10,11\"

      but there should be better ways.

      Attachments

        Activity

          People

            davidb A. J. David Bosschaert
            rombert Robert Munteanu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: