karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dutertry Nicolas <Nicolas.Duter...@HRACCESS.com>
Subject RE: karaf-assembly and config files
Date Tue, 04 Mar 2014 09:32:19 GMT
I did not use any specific goal as I used karaf-assembly packaging which automatically 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 named org.ops4j.pax.logging.cfg
in etc folder.

Here is my pom.xml :

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <!-- scope is compile so all features (there is only one) are installed into startup.properties
and the feature repo itself is not installed -->
        <!-- scope is runtime so the feature repo is listed in the features service config
file, and features may be installed using the karaf-maven-plugin configuration -->

                    <!-- no startupFeatures -->                    
                    <!-- no installedFeatures -->

Nicolas Dutertry

-----Original Message-----
From: Jean-Baptiste Onofré [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 ?


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.cfg, but then
the final zip contains the file twice in "etc" folder (mine plus the original one).
> Regards,

Jean-Baptiste Onofré
Talend - http://www.talend.com

View raw message