From user-return-18542-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Sun May 13 08:24:07 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 AE155180636 for ; Sun, 13 May 2018 08:24:06 +0200 (CEST) Received: (qmail 91040 invoked by uid 500); 13 May 2018 06:23:59 -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 91030 invoked by uid 99); 13 May 2018 06:23:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 May 2018 06:23:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7C32E1A27F0 for ; Sun, 13 May 2018 06:23:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.3 X-Spam-Level: X-Spam-Status: No, score=0.3 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id zCYp2ON6iEK5 for ; Sun, 13 May 2018 06:23:58 +0000 (UTC) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C94D65F1BE for ; Sun, 13 May 2018 06:23:57 +0000 (UTC) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.132] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 7DEB2C0002 for ; Sun, 13 May 2018 08:23:52 +0200 (CEST) Subject: Re: Odd feature repo behavior in 4.2.0 custom distrorome To: user@karaf.apache.org References: <205BC109-7C83-49FD-8C79-14A4DAF5FDC5@me.com> From: =?UTF-8?Q?Jean-Baptiste_Onofr=c3=a9?= Message-ID: <717bb9ee-bee8-54a3-128c-61765f4f7061@nanthrax.net> Date: Sun, 13 May 2018 08:23:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <205BC109-7C83-49FD-8C79-14A4DAF5FDC5@me.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Hi, feature:repo-list only shows your repo or the "standard" karaf repos at well ? If feature:install doesn't return an error, it means it worked without problem. You can use -v to have more details. Regards JB On 12/05/2018 22:43, Erwin Hogeweg wrote: > Hi - > > I ran into an issue with a custom distro. > > Installing a local feature from the console works just fine, but when I > include the feature repo in the org.apache.karaf.features.cfg file the > feature won’t load because karaf thinks it doesn’t exist. > > This is what I get when I install from the console while the : > > karaf@root()> feature:repo-add mvn:com.myproject/my-features/1.0.0-SNAPSHOT/xml/features > karaf@root()> feature:repo-list >   my-features-1.0.0-SNAPSHOT               │ > mvn:com.myproject/my-features/1.0.0-SNAPSHOT/xml/features > karaf@root()> feature:install my-feature > karaf@root()> > > This is the entry in the distro pom to add the repo to the config file: > > > com.myproject > my-features > ${project.version} > features > xml > runtime > > > > And this is what I get when I install the feature in the distro: > > feature:repo-list >   my-features                     │ > mvn:com.myproject/my-features/1.0.0-SNAPSHOT/xml/features > karaf@root()> feature:install my-feature > Error executing command: No matching features for my-feature/0 > > Not sure what is going on here. In the first case the Repository name > shown is the feature name as defined in feature.xml, in the second case > it is the feature artifact name as defined in the pom.xml. > > I checked the docs and compared my distro pom with the 4.2.0 source > code. I don’t see (...) any glaring mistakes, but obviously something > must be wrong. > > Any suggestions are greatly appreciated. > > > Kind Regards, > > Erwin