From user-return-18509-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Wed May 9 17:48:41 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 22A4D180649 for ; Wed, 9 May 2018 17:48:40 +0200 (CEST) Received: (qmail 55791 invoked by uid 500); 9 May 2018 15:48:40 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 55781 invoked by uid 99); 9 May 2018 15:48:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2018 15:48:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 919CBCC7DD for ; Wed, 9 May 2018 15:48:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.709 X-Spam-Level: X-Spam-Status: No, score=-0.709 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=envieta-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Tbs5FNOJ3-uO for ; Wed, 9 May 2018 15:48:37 +0000 (UTC) Received: from mail-qt0-f178.google.com (mail-qt0-f178.google.com [209.85.216.178]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A7E915F178 for ; Wed, 9 May 2018 15:48:37 +0000 (UTC) Received: by mail-qt0-f178.google.com with SMTP id g13-v6so46218899qth.8 for ; Wed, 09 May 2018 08:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envieta-com.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=BXzk8qvgoYNOuLp5TnxvlqH6FxYHUue1ivK7ZCyxRm4=; b=MuUmIqMf766OE1BNrE/vRsdYHWzwxMfKv1FYpvCGMFF6fwPecXgX30eDr6xRqoZOCO jRCPaw2rRoI+AY3ndRKaK3FnZ/r5yyzB8LqLMkxDTptsiKJ4DKW8+uvymf4rJ6UyMV/N rFxBG8I3oo8FlNh5VUwoqep3rFvvwDlFvTEOtKwQ5rCf9IOPmXqtna2y9x9wHCPhwVN7 lQq34kKYkMku8EgEtZYQ3M302dLnt/iinsIuOs8Ym462fnCSfmAceCAs9DCKxdNlBL8i DnXOMFSC1fG2E8kZv5eVJgL7hMQkEAeVegn6nYbA4wGEPaxBCtYU6YtaRfrmhb5RzkS2 1W0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=BXzk8qvgoYNOuLp5TnxvlqH6FxYHUue1ivK7ZCyxRm4=; b=gLLjvk2SUo/PycRhWX4ktsojZ94MAISgaA2dJgqN9pHFic1pZ24gcD9zHrhnXmm1/6 577ihex9bSp8whKLK/gVfmyb7HwL4epG+B1+MeLsUVND0Fx5z8MB/nrKlrqUh7RSU9Ip Btc145G3YjYLV/RjGulfkthyQO7SwjdW10YfFCe2aqgTRi34B8RoWpdG3ws7hxlrT+oj tPetpRek2x4gI/8IuuDw0SBwybMr/OdrK3CG4ejuwR7dcpsebDtp5P9CdlfR8FPo/ESz hsneziwfH/JCbeqgqTRJKqy8Mtw9o29Uequrv84ykt6LCgurc1nshbnL9JvRzb8OCu+O UUOQ== X-Gm-Message-State: ALQs6tBANDkfOLb2/kMoCFhpcmgZGlKFD+4fkgrWzzKCtqyVvmsmJL3z PO5ikuULVzv/7BgJatdb94BaHd/YPew75coYCiWfdcc0hy+IY3W5Ut0ArlMk4bHX8vrucF8aRB5 Qb90rbbq+9e02R1L1H6uqjqmEh8sQZZ7NmzOpJhbMirFs3pWV++9wa7uxuOkr6PfgiNWg X-Google-Smtp-Source: AB8JxZrSMaS1tHDl9JnUrDVvTWacXgp5BjKlr3IuPktKefevfPpKT2HnjmpFtrVTHmqs5ZbyONAkug== X-Received: by 2002:aed:2725:: with SMTP id n34-v6mr43438168qtd.36.1525880917152; Wed, 09 May 2018 08:48:37 -0700 (PDT) Received: from [192.168.200.167] (96-91-209-91-static.hfc.comcastbusiness.net. [96.91.209.91]) by smtp.gmail.com with ESMTPSA id n29-v6sm25536162qta.94.2018.05.09.08.48.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 May 2018 08:48:36 -0700 (PDT) From: Alex Soto Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Custom distribution, Camel, Missing org.slf4j Date: Wed, 9 May 2018 11:48:35 -0400 References: <20459472-0440-4CEB-97C7-179B51862DCE@envieta.com> <64697AB8-A5AB-4B91-8AA8-4AD1A43504B4@envieta.com> <4A4B1DA9-C275-4D1E-AB2E-4D1A7990737C@envieta.com> <75cc3559-9fdd-b940-e8d7-40afec614b0d@nanthrax.net> To: user@karaf.apache.org In-Reply-To: <75cc3559-9fdd-b940-e8d7-40afec614b0d@nanthrax.net> Message-Id: X-Mailer: Apple Mail (2.3445.6.18) Thanks JB, =20 Something is wrong with that link, it came back with a 404 error. Sorry I can=E2=80=99t find in the Karaf sources where it uses the = plugin, can you point me to where it is?=20 I mean I cloned the repo locally, but I don=E2=80=99t know where to = look. Best regards, Alex soto > On May 9, 2018, at 10:49 AM, Jean-Baptiste Onofr=C3=A9 = wrote: >=20 > Hi Alex, >=20 > yes, Karaf itself use the plugin. >=20 > You can also take a look on https://github.com/jbonofre/DEV_GUIDE = which contains the future examples that will be part of the Karaf = distribution. I'm adding a new example adding Camel specifically for = you. >=20 > Regards > JB >=20 > On 09/05/2018 16:24, Alex Soto wrote: >> Probably better if I look at some working example. >> Is there a full example of how to create a custom distribution? Is = Karaf itself using this to build its own? >> Best regards, >> Alex soto >>> On May 8, 2018, at 11:21 AM, Jean-Baptiste Onofr=C3=A9 = wrote: >>>=20 >>> OK, >>>=20 >>> let me take a look. >>>=20 >>> The log feature should provide the slf4j package required by = camel-core. >>>=20 >>> Regards >>> JB >>>=20 >>> On 08/05/2018 17:04, Alex Soto wrote: >>>> Thanks BJ, as you suggested, I moved camel-core to the = installedFeatures >>>> >>>> camel-core >>>> >>>> But still didn=E2=80=99t help, same error as before. >>>> Best regards, >>>> Alex soto >>>>> On May 8, 2018, at 10:08 AM, Jean-Baptiste Onofr=C3=A9 = wrote: >>>>>=20 >>>>> Hi Alex, >>>>>=20 >>>>> I guess it work if you put camel-core as a installed feature. >>>>>=20 >>>>> The log feature should be installed in stage before camel-core. = Let me provide the corrected pom.xml to you. >>>>>=20 >>>>> Regards >>>>> JB >>>>>=20 >>>>> On 08/05/2018 15:55, Alex Soto wrote: >>>>>> Hello, >>>>>> I am trying to build a custom distribution with Karaf (version = 4.2.0), when I add Camel (version 2.21.1), I get the following error: >>>>>> [ERROR] Failed to execute goal = org.apache.karaf.tooling:karaf-maven-plugin:4.2.0:assembly = (gen-assembly) on project test: Unable to build assembly: Unable to = resolve root: missing requirement [root] osgi.identity; = osgi.identity=3Dcamel-core; type=3Dkaraf.feature; version=3D2.21.1; = filter:=3D"(&(osgi.identity=3Dcamel-core)(type=3Dkaraf.feature)(version>=3D= 2.21.1))" [caused by: Unable to resolve camel-core/2.21.1: missing = requirement [camel-core/2.21.1] osgi.identity; = osgi.identity=3Dorg.apache.camel.camel-core; type=3Dosgi.bundle; = version=3D"[2.21.1,2.21.1]"; resolution:=3Dmandatory [caused by: Unable = to resolve org.apache.camel.camel-core/2.21.1: missing requirement = [org.apache.camel.camel-core/2.21.1] osgi.wiring.package; = filter:=3D"(&(osgi.wiring.package=3Dorg.slf4j)(version>=3D1.7.0)(!(version= >=3D2.0.0)))"]] -> [Help 1] >>>>>> My dependencies are: >>>>>> >>>>>> >>>>>> org.apache.karaf.features >>>>>> framework >>>>>> ${karaf.version} >>>>>> kar >>>>>> >>>>>> >>>>>> org.apache.camel.karaf >>>>>> apache-camel >>>>>> features >>>>>> xml >>>>>> >>>>>> >>>>>> My boot features are: >>>>>> >>>>>> instance >>>>>> package >>>>>> log >>>>>> ssh >>>>>> framework >>>>>> system >>>>>> eventadmin >>>>>> feature >>>>>> shell >>>>>> management >>>>>> service >>>>>> jaas >>>>>> deployer >>>>>> diagnostic >>>>>> wrap >>>>>> bundle >>>>>> config >>>>>> kar >>>>>> scr >>>>>> aries-blueprint >>>>>> war >>>>>> camel-core >>>>>> >>>>>> Is there a missing feature or dependency I need to add? >>>>>> Best regards, >>>>>> Alex soto