Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E63771092B for ; Tue, 4 Mar 2014 09:39:35 +0000 (UTC) Received: (qmail 45290 invoked by uid 500); 4 Mar 2014 09:39:34 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 45206 invoked by uid 500); 4 Mar 2014 09:39:32 -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 45198 invoked by uid 99); 4 Mar 2014 09:39:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 09:39:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.70.183.195] (HELO relay3-d.mail.gandi.net) (217.70.183.195) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 09:39:26 +0000 Received: from mfilter9-d.gandi.net (mfilter9-d.gandi.net [217.70.178.138]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id E9892A80ED for ; Tue, 4 Mar 2014 10:39:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter9-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter9-d.gandi.net (mfilter9-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id PgD-BOBPY07U for ; Tue, 4 Mar 2014 10:39:03 +0100 (CET) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.11] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 2BB8AA80D1 for ; Tue, 4 Mar 2014 10:39:02 +0100 (CET) Message-ID: <53159F35.4060707@nanthrax.net> Date: Tue, 04 Mar 2014 10:39:01 +0100 From: =?ISO-8859-1?Q?Jean-Baptiste_Onofr=E9?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: user@karaf.apache.org Subject: Re: karaf-assembly and config files References: <19694_1393921648_53158E70_19694_2858_1_56DC7FCE734E5943A64836578350F5239CD354@wptxexmbx04.ptx.fr.sopra> <53159548.1070304@nanthrax.net> <22588_1393925546_53159DA9_22588_2764_1_56DC7FCE734E5943A64836578350F5239CD3A7@wptxexmbx04.ptx.fr.sopra> In-Reply-To: <22588_1393925546_53159DA9_22588_2764_1_56DC7FCE734E5943A64836578350F5239CD3A7@wptxexmbx04.ptx.fr.sopra> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Thanks for sharing (even if the zip file has been removed ;)). I gonna take a look (as I'm working on a complete cleanup of the=20 karaf-maven-plugin). I keep you posted. Regards JB On 03/04/2014 10:32 AM, Dutertry Nicolas wrote: > I did not use any specific goal as I used karaf-assembly packaging whic= h automatically calls install-kars and instance-create-archive goals. > > I have a custom org.ops4j.pax.logging.cfg in the file in src/main/resou= rces/etc/. > I have attached the built zip file in this mail. You will find 2 files = named org.ops4j.pax.logging.cfg in etc folder. > > Here is my pom.xml : > > > > 4.0.0 > > test > test-custom > 1.0.0-SNAPSHOT > karaf-assembly > ${project.artifactId} > > > 3.0.0 > > =09 > > > > org.apache.karaf.features > framework > ${karaf.version} > kar > > > > > org.apache.karaf.features > standard > features > ${karaf.version} > xml > runtime > > > > > > > org.apache.karaf.tooling > karaf-maven-plugin > 3.0.0 > true > > > > standard > management > > > > > > > > > -- > Nicolas Dutertry > > -----Original Message----- > From: Jean-Baptiste Onofr=E9 [mailto:jb@nanthrax.net] > Sent: mardi 4 mars 2014 09:57 > To: user@karaf.apache.org > Subject: Re: karaf-assembly and config files > > Hi Nicolas, > > Did you create a kar file with the create-kar goal and use the install-= kar goal to populate the assembly ? > > Could you explain what you do ? > > Thanks, > Regards > JB > > On 03/04/2014 09:27 AM, Dutertry Nicolas wrote: >> Hi, >> >> I am using karaf-assembly packaging to build a custom karaf distributi= on with karaf-maven-plugin. >> >> What is the right way to override the content of a standard karaf file= ? For instance I want to provide a custom org.ops4j.pax.logging.cfg. >> >> I tried to put the file in src/main/resources/etc/org.ops4j.pax.loggin= g.cfg, but then the final zip contains the file twice in "etc" folder (mi= ne plus the original one). >> >> Regards, >> > > -- > Jean-Baptiste Onofr=E9 > jbonofre@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com > --=20 Jean-Baptiste Onofr=E9 jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com