From dev-return-106383-archive-asf-public=cust-asf.ponee.io@sling.apache.org Wed May 6 10:19:03 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id F339518064F for ; Wed, 6 May 2020 12:19:02 +0200 (CEST) Received: (qmail 62473 invoked by uid 500); 6 May 2020 10:19:02 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 62450 invoked by uid 99); 6 May 2020 10:19:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 May 2020 10:19:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 98155E2F68 for ; Wed, 6 May 2020 10:19:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 3D5427821F2 for ; Wed, 6 May 2020 10:19:00 +0000 (UTC) Date: Wed, 6 May 2020 10:19:00 +0000 (UTC) From: "Robert Munteanu (Jira)" To: dev@sling.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SLING-9425) Analyser fails when bundle requires Java 11 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SLING-9425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17100654#comment-17100654 ] Robert Munteanu commented on SLING-9425: ---------------------------------------- And FWIW, the analyser went through with the above change, but I had failures at runtime since a number of bundles required a different value of the {{osgi.ee}} capability, namely: 1.3.0, 1.5.0 and 1.6.0 . > Analyser fails when bundle requires Java 11 > ------------------------------------------- > > Key: SLING-9425 > URL: https://issues.apache.org/jira/browse/SLING-9425 > Project: Sling > Issue Type: Bug > Components: Feature Model Analyser > Reporter: Robert Munteanu > Priority: Major > > 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 > {noformat}[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.{noformat} > I was able to cheat my way out of this by providing a static capability for the framework: > {noformat}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\"{noformat} > but there should be better ways. -- This message was sent by Atlassian Jira (v8.3.4#803005)