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 45793108F9 for ; Tue, 4 Mar 2014 09:33:05 +0000 (UTC) Received: (qmail 35492 invoked by uid 500); 4 Mar 2014 09:33:04 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 35172 invoked by uid 500); 4 Mar 2014 09:32:57 -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 35095 invoked by uid 99); 4 Mar 2014 09:32:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 09:32:52 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [81.80.239.197] (HELO mgw02.sopragroup.com) (81.80.239.197) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 09:32:46 +0000 Received: from mgw02.sopragroup.com (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 03C801840CB for ; Tue, 4 Mar 2014 10:32:26 +0100 (CET) From: Dutertry Nicolas To: "'user@karaf.apache.org'" Subject: RE: karaf-assembly and config files Thread-Topic: karaf-assembly and config files Thread-Index: Ac83glBuqiOm7A9xTk6e7MlRFFvipP//+ewA///nLFA= Date: Tue, 4 Mar 2014 09:32:19 +0000 Message-ID: <22588_1393925546_53159DA9_22588_2764_1_56DC7FCE734E5943A64836578350F5239CD3A7@wptxexmbx04.ptx.fr.sopra> References: <19694_1393921648_53158E70_19694_2858_1_56DC7FCE734E5943A64836578350F5239CD354@wptxexmbx04.ptx.fr.sopra> <53159548.1070304@nanthrax.net> In-Reply-To: <53159548.1070304@nanthrax.net> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.166.70.95] Content-Type: multipart/mixed; boundary="_002_56DC7FCE734E5943A64836578350F5239CD3A7wptxexmbx04ptxfrs_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_002_56DC7FCE734E5943A64836578350F5239CD3A7wptxexmbx04ptxfrs_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I did not use any specific goal as I used karaf-assembly packaging which au= tomatically calls install-kars and instance-create-archive goals. I have a custom org.ops4j.pax.logging.cfg in the file in src/main/resources= /etc/. I have attached the built zip file in this mail. You will find 2 files name= d org.ops4j.pax.logging.cfg in etc folder. Here is my pom.xml : 4.0.0 =20 test test-custom 1.0.0-SNAPSHOT karaf-assembly ${project.artifactId} =20 3.0.0 =09 org.apache.karaf.features standard features ${karaf.version} xml runtime org.apache.karaf.tooling karaf-maven-plugin 3.0.0 true =20 standard management -- Nicolas Dutertry -----Original Message----- From: Jean-Baptiste Onofr=E9 [mailto:jb@nanthrax.net]=20 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 distribution = 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.logging.c= fg, but then the final zip contains the file twice in "etc" folder (mine pl= us the original one). > > Regards, > -- Jean-Baptiste Onofr=E9 jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com --_002_56DC7FCE734E5943A64836578350F5239CD3A7wptxexmbx04ptxfrs_ Content-Type: text/plain; name="A_POLICY_VIOLATED_FILE_WAS_DETECTED_AND_REMOVED.TXT" Content-Description: A_POLICY_VIOLATED_FILE_WAS_DETECTED_AND_REMOVED.TXT Content-Disposition: attachment; filename="A_POLICY_VIOLATED_FILE_WAS_DETECTED_AND_REMOVED.TXT"; size=209; creation-date="Tue, 04 Mar 2014 09:24:40 GMT"; modification-date="Tue, 04 Mar 2014 09:24:41 GMT" Content-Transfer-Encoding: base64 77u/U2Nhbk1haWwgZGV0ZWN0ZWQgYW5kIHJlbW92ZWQgYSBmaWxlIG5hbWVkICJ0ZXN0LWN1c3Rv bS0xLjAuMC1TTkFQU0hPVC56aXAiIHRoYXQgdmlvbGF0ZWQgYXR0YWNobWVudCBibG9ja2luZyBw b2xpY3kgZnJvbSB0aGUgb3JpZ2luYWwgbWFpbCBlbnRpdHkuIFlvdSBjYW4gc2FmZWx5IHNhdmUg b3IgZGVsZXRlIHRoaXMgcmVwbGFjZW1lbnQgYXR0YWNobWVudC4= --_002_56DC7FCE734E5943A64836578350F5239CD3A7wptxexmbx04ptxfrs_--