You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Dutertry Nicolas <Ni...@HRACCESS.com> on 2014/03/04 09:27:27 UTC
karaf-assembly and config files
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,
--
Nicolas Dutertry
HR Access - http://www.hraccess.com
Re: karaf-assembly and config files
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Thanks,
let me take a look.
Regards
JB
On 10/12/2014 06:39 PM, Oliver Pajonk wrote:
> Hi JB,
>
> attached is the POM of the "application" module. I had to obfuscate the
> groupid/artifactid, but that should be no problem I guess. The parent
> POM "karaf-application" contains not contain anything interesting
> besides two modules (the application module and a feature
> module). ${version.apache-karaf} is defined as 3.0.1 in the main POM of
> the application.
>
> Regards,
> Oliver
>
> 2014-10-12 18:21 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>>:
>
> Hi Oliver,
>
> could you share your pom ?
>
> I replied in a Jira and it works fine for me (let me find the Jira).
>
> The problem was just in the execution phase.
>
> Regards
> JB
>
> On 10/12/2014 06:16 PM, Oliver Pajonk wrote:
>
> Hi JB,
>
> I have tried just now 3.0.2-SNAPSHOT and also 3.0.3.-SNAPSHOT from
> https://repository.apache.org/__snapshots/
> <https://repository.apache.org/snapshots/>. I have switched the
> version
> for all my Karaf dependencies as well as for the
> karaf-maven-plugin, but
> it did not help. The file in the ZIP/TAR.GZ is still duplicated,
> and the
> file target\assembly\etc\org.ops4j.__pax.logging.cfg is the
> default one :-(
>
> Best regards,
> Oliver
>
> 2014-10-12 16:49 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>
> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>:
>
> Hi Olivier,
>
> did you try with 3.0.2-SNAPSHOT (or staging 3.0.2) ?
>
> Regards
> JB
>
> On 10/12/2014 12:31 PM, oliverpajonk wrote:
>
> Hi all,
>
> is there any news on this issue? I hit the same problem
> today
> and am stuck
> with it: I want to use the karaf-assembly packaging to
> create my
> distribution (which works just fine). However, I need to
> override a file in
> the /etc directory (custom logging configuration). I do
> this by
> putting it
> into src/main/resources/etc, but the karaf-assembly
> packaging
> puts *two*
> files in the ZIP/TAR.GZ: mine, and the default one.
>
> Regards,
> Oliver
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.____com/karaf-assembly-and-__config-__files-__tp4032040p4035790.html
>
> <http://karaf.922171.n3.__nabble.com/karaf-assembly-and-__config-files-__tp4032040p4035790.html
> <http://karaf.922171.n3.nabble.com/karaf-assembly-and-config-files-tp4032040p4035790.html>>
> Sent from the Karaf - User mailing list archive at
> Nabble.com.
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> <mailto:jbonofre@apache.org <ma...@apache.org>>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: karaf-assembly and config files
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
No worries.
Jamie or I will upload the updated documentation as soon as the release
votes passed.
Regards
JB
On 10/13/2014 07:01 PM, Oliver Pajonk wrote:
> Hi guys!
>
> Perfect, using the maven-resources-plugin all works as expected. I think
> the "custom distribution" documentation update will help future users
> (that is what I looked at). Thanks a lot!
>
> Regards,
> Oliver
>
> 2014-10-13 10:17 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>>:
>
> By the way, I also updated the documentation:
>
> https://git-wip-us.apache.org/__repos/asf?p=karaf.git;a=__commitdiff;h=__41add7eb13b60dd8f51f6bdd997ea7__572d85c2ed
> <https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=41add7eb13b60dd8f51f6bdd997ea7572d85c2ed>
>
> Regards
> JB
>
> On 10/12/2014 06:39 PM, Oliver Pajonk wrote:
>
> Hi JB,
>
> attached is the POM of the "application" module. I had to
> obfuscate the
> groupid/artifactid, but that should be no problem I guess. The
> parent
> POM "karaf-application" contains not contain anything interesting
> besides two modules (the application module and a feature
> module). ${version.apache-karaf} is defined as 3.0.1 in the main
> POM of
> the application.
>
> Regards,
> Oliver
>
> 2014-10-12 18:21 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>
> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>:
>
> Hi Oliver,
>
> could you share your pom ?
>
> I replied in a Jira and it works fine for me (let me find
> the Jira).
>
> The problem was just in the execution phase.
>
> Regards
> JB
>
> On 10/12/2014 06:16 PM, Oliver Pajonk wrote:
>
> Hi JB,
>
> I have tried just now 3.0.2-SNAPSHOT and also
> 3.0.3.-SNAPSHOT from
> https://repository.apache.org/____snapshots/
> <https://repository.apache.org/__snapshots/>
> <https://repository.apache.__org/snapshots/
> <https://repository.apache.org/snapshots/>>. I have switched the
> version
> for all my Karaf dependencies as well as for the
> karaf-maven-plugin, but
> it did not help. The file in the ZIP/TAR.GZ is still
> duplicated,
> and the
> file target\assembly\etc\org.ops4j.____pax.logging.cfg
> is the
> default one :-(
>
> Best regards,
> Oliver
>
> 2014-10-12 16:49 GMT+02:00 Jean-Baptiste Onofré
> <jb@nanthrax.net <ma...@nanthrax.net>
> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>
> <mailto:jb@nanthrax.net <ma...@nanthrax.net>
> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>>:
>
> Hi Olivier,
>
> did you try with 3.0.2-SNAPSHOT (or staging 3.0.2) ?
>
> Regards
> JB
>
> On 10/12/2014 12:31 PM, oliverpajonk wrote:
>
> Hi all,
>
> is there any news on this issue? I hit the
> same problem
> today
> and am stuck
> with it: I want to use the karaf-assembly
> packaging to
> create my
> distribution (which works just fine). However,
> I need to
> override a file in
> the /etc directory (custom logging
> configuration). I do
> this by
> putting it
> into src/main/resources/etc, but the
> karaf-assembly
> packaging
> puts *two*
> files in the ZIP/TAR.GZ: mine, and the default
> one.
>
> Regards,
> Oliver
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.______com/karaf-assembly-and-____config-__files-____tp4032040p4035790.html
>
>
> <http://karaf.922171.n3.__nabb__le.com/karaf-assembly-and-____config-files-____tp4032040p4035790.html
> <http://nabble.com/karaf-assembly-and-__config-files-__tp4032040p4035790.html>
>
> <http://karaf.922171.n3.__nabble.com/karaf-assembly-and-__config-files-__tp4032040p4035790.html
> <http://karaf.922171.n3.nabble.com/karaf-assembly-and-config-files-tp4032040p4035790.html>>>
> Sent from the Karaf - User mailing list archive at
> Nabble.com.
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> <mailto:jbonofre@apache.org <ma...@apache.org>>
> <mailto:jbonofre@apache.org
> <ma...@apache.org> <mailto:jbonofre@apache.org
> <ma...@apache.org>>>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> <mailto:jbonofre@apache.org <ma...@apache.org>>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: karaf-assembly and config files
Posted by Oliver Pajonk <ol...@pjnk.de>.
Hi guys!
Perfect, using the maven-resources-plugin all works as expected. I think
the "custom distribution" documentation update will help future users (that
is what I looked at). Thanks a lot!
Regards,
Oliver
2014-10-13 10:17 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
> By the way, I also updated the documentation:
>
> https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=
> 41add7eb13b60dd8f51f6bdd997ea7572d85c2ed
>
> Regards
> JB
>
> On 10/12/2014 06:39 PM, Oliver Pajonk wrote:
>
>> Hi JB,
>>
>> attached is the POM of the "application" module. I had to obfuscate the
>> groupid/artifactid, but that should be no problem I guess. The parent
>> POM "karaf-application" contains not contain anything interesting
>> besides two modules (the application module and a feature
>> module). ${version.apache-karaf} is defined as 3.0.1 in the main POM of
>> the application.
>>
>> Regards,
>> Oliver
>>
>> 2014-10-12 18:21 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>>:
>>
>> Hi Oliver,
>>
>> could you share your pom ?
>>
>> I replied in a Jira and it works fine for me (let me find the Jira).
>>
>> The problem was just in the execution phase.
>>
>> Regards
>> JB
>>
>> On 10/12/2014 06:16 PM, Oliver Pajonk wrote:
>>
>> Hi JB,
>>
>> I have tried just now 3.0.2-SNAPSHOT and also 3.0.3.-SNAPSHOT from
>> https://repository.apache.org/__snapshots/
>> <https://repository.apache.org/snapshots/>. I have switched the
>> version
>> for all my Karaf dependencies as well as for the
>> karaf-maven-plugin, but
>> it did not help. The file in the ZIP/TAR.GZ is still duplicated,
>> and the
>> file target\assembly\etc\org.ops4j.__pax.logging.cfg is the
>> default one :-(
>>
>> Best regards,
>> Oliver
>>
>> 2014-10-12 16:49 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>
>> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>:
>>
>> Hi Olivier,
>>
>> did you try with 3.0.2-SNAPSHOT (or staging 3.0.2) ?
>>
>> Regards
>> JB
>>
>> On 10/12/2014 12:31 PM, oliverpajonk wrote:
>>
>> Hi all,
>>
>> is there any news on this issue? I hit the same problem
>> today
>> and am stuck
>> with it: I want to use the karaf-assembly packaging to
>> create my
>> distribution (which works just fine). However, I need to
>> override a file in
>> the /etc directory (custom logging configuration). I do
>> this by
>> putting it
>> into src/main/resources/etc, but the karaf-assembly
>> packaging
>> puts *two*
>> files in the ZIP/TAR.GZ: mine, and the default one.
>>
>> Regards,
>> Oliver
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.____com/karaf-assembly-and-__
>> config-__files-__tp4032040p4035790.html
>>
>> <http://karaf.922171.n3.__nabble.com/karaf-assembly-and-__
>> config-files-__tp4032040p4035790.html
>> <http://karaf.922171.n3.nabble.com/karaf-assembly-and-
>> config-files-tp4032040p4035790.html>>
>> Sent from the Karaf - User mailing list archive at
>> Nabble.com.
>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org <ma...@apache.org>
>> <mailto:jbonofre@apache.org <ma...@apache.org>>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org <ma...@apache.org>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: karaf-assembly and config files
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
By the way, I also updated the documentation:
https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=41add7eb13b60dd8f51f6bdd997ea7572d85c2ed
Regards
JB
On 10/12/2014 06:39 PM, Oliver Pajonk wrote:
> Hi JB,
>
> attached is the POM of the "application" module. I had to obfuscate the
> groupid/artifactid, but that should be no problem I guess. The parent
> POM "karaf-application" contains not contain anything interesting
> besides two modules (the application module and a feature
> module). ${version.apache-karaf} is defined as 3.0.1 in the main POM of
> the application.
>
> Regards,
> Oliver
>
> 2014-10-12 18:21 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>>:
>
> Hi Oliver,
>
> could you share your pom ?
>
> I replied in a Jira and it works fine for me (let me find the Jira).
>
> The problem was just in the execution phase.
>
> Regards
> JB
>
> On 10/12/2014 06:16 PM, Oliver Pajonk wrote:
>
> Hi JB,
>
> I have tried just now 3.0.2-SNAPSHOT and also 3.0.3.-SNAPSHOT from
> https://repository.apache.org/__snapshots/
> <https://repository.apache.org/snapshots/>. I have switched the
> version
> for all my Karaf dependencies as well as for the
> karaf-maven-plugin, but
> it did not help. The file in the ZIP/TAR.GZ is still duplicated,
> and the
> file target\assembly\etc\org.ops4j.__pax.logging.cfg is the
> default one :-(
>
> Best regards,
> Oliver
>
> 2014-10-12 16:49 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>
> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>:
>
> Hi Olivier,
>
> did you try with 3.0.2-SNAPSHOT (or staging 3.0.2) ?
>
> Regards
> JB
>
> On 10/12/2014 12:31 PM, oliverpajonk wrote:
>
> Hi all,
>
> is there any news on this issue? I hit the same problem
> today
> and am stuck
> with it: I want to use the karaf-assembly packaging to
> create my
> distribution (which works just fine). However, I need to
> override a file in
> the /etc directory (custom logging configuration). I do
> this by
> putting it
> into src/main/resources/etc, but the karaf-assembly
> packaging
> puts *two*
> files in the ZIP/TAR.GZ: mine, and the default one.
>
> Regards,
> Oliver
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.____com/karaf-assembly-and-__config-__files-__tp4032040p4035790.html
>
> <http://karaf.922171.n3.__nabble.com/karaf-assembly-and-__config-files-__tp4032040p4035790.html
> <http://karaf.922171.n3.nabble.com/karaf-assembly-and-config-files-tp4032040p4035790.html>>
> Sent from the Karaf - User mailing list archive at
> Nabble.com.
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> <mailto:jbonofre@apache.org <ma...@apache.org>>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: karaf-assembly and config files
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Oliver,
please take a look on:
https://issues.apache.org/jira/browse/KARAF-2742
I updated an user pom to include filtered resources, and it works fine.
Regards
JB
On 10/12/2014 06:39 PM, Oliver Pajonk wrote:
> Hi JB,
>
> attached is the POM of the "application" module. I had to obfuscate the
> groupid/artifactid, but that should be no problem I guess. The parent
> POM "karaf-application" contains not contain anything interesting
> besides two modules (the application module and a feature
> module). ${version.apache-karaf} is defined as 3.0.1 in the main POM of
> the application.
>
> Regards,
> Oliver
>
> 2014-10-12 18:21 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>>:
>
> Hi Oliver,
>
> could you share your pom ?
>
> I replied in a Jira and it works fine for me (let me find the Jira).
>
> The problem was just in the execution phase.
>
> Regards
> JB
>
> On 10/12/2014 06:16 PM, Oliver Pajonk wrote:
>
> Hi JB,
>
> I have tried just now 3.0.2-SNAPSHOT and also 3.0.3.-SNAPSHOT from
> https://repository.apache.org/__snapshots/
> <https://repository.apache.org/snapshots/>. I have switched the
> version
> for all my Karaf dependencies as well as for the
> karaf-maven-plugin, but
> it did not help. The file in the ZIP/TAR.GZ is still duplicated,
> and the
> file target\assembly\etc\org.ops4j.__pax.logging.cfg is the
> default one :-(
>
> Best regards,
> Oliver
>
> 2014-10-12 16:49 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>
> <mailto:jb@nanthrax.net <ma...@nanthrax.net>>>:
>
> Hi Olivier,
>
> did you try with 3.0.2-SNAPSHOT (or staging 3.0.2) ?
>
> Regards
> JB
>
> On 10/12/2014 12:31 PM, oliverpajonk wrote:
>
> Hi all,
>
> is there any news on this issue? I hit the same problem
> today
> and am stuck
> with it: I want to use the karaf-assembly packaging to
> create my
> distribution (which works just fine). However, I need to
> override a file in
> the /etc directory (custom logging configuration). I do
> this by
> putting it
> into src/main/resources/etc, but the karaf-assembly
> packaging
> puts *two*
> files in the ZIP/TAR.GZ: mine, and the default one.
>
> Regards,
> Oliver
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.____com/karaf-assembly-and-__config-__files-__tp4032040p4035790.html
>
> <http://karaf.922171.n3.__nabble.com/karaf-assembly-and-__config-files-__tp4032040p4035790.html
> <http://karaf.922171.n3.nabble.com/karaf-assembly-and-config-files-tp4032040p4035790.html>>
> Sent from the Karaf - User mailing list archive at
> Nabble.com.
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> <mailto:jbonofre@apache.org <ma...@apache.org>>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: karaf-assembly and config files
Posted by Oliver Pajonk <ol...@pjnk.de>.
Hi JB,
attached is the POM of the "application" module. I had to obfuscate the
groupid/artifactid, but that should be no problem I guess. The parent POM
"karaf-application" contains not contain anything interesting besides two
modules (the application module and a feature
module). ${version.apache-karaf} is defined as 3.0.1 in the main POM of the
application.
Regards,
Oliver
2014-10-12 18:21 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
> Hi Oliver,
>
> could you share your pom ?
>
> I replied in a Jira and it works fine for me (let me find the Jira).
>
> The problem was just in the execution phase.
>
> Regards
> JB
>
> On 10/12/2014 06:16 PM, Oliver Pajonk wrote:
>
>> Hi JB,
>>
>> I have tried just now 3.0.2-SNAPSHOT and also 3.0.3.-SNAPSHOT from
>> https://repository.apache.org/snapshots/. I have switched the version
>> for all my Karaf dependencies as well as for the karaf-maven-plugin, but
>> it did not help. The file in the ZIP/TAR.GZ is still duplicated, and the
>> file target\assembly\etc\org.ops4j.pax.logging.cfg is the default one :-(
>>
>> Best regards,
>> Oliver
>>
>> 2014-10-12 16:49 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
>> <ma...@nanthrax.net>>:
>>
>> Hi Olivier,
>>
>> did you try with 3.0.2-SNAPSHOT (or staging 3.0.2) ?
>>
>> Regards
>> JB
>>
>> On 10/12/2014 12:31 PM, oliverpajonk wrote:
>>
>> Hi all,
>>
>> is there any news on this issue? I hit the same problem today
>> and am stuck
>> with it: I want to use the karaf-assembly packaging to create my
>> distribution (which works just fine). However, I need to
>> override a file in
>> the /etc directory (custom logging configuration). I do this by
>> putting it
>> into src/main/resources/etc, but the karaf-assembly packaging
>> puts *two*
>> files in the ZIP/TAR.GZ: mine, and the default one.
>>
>> Regards,
>> Oliver
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.__com/karaf-assembly-and-
>> config-__files-tp4032040p4035790.html
>> <http://karaf.922171.n3.nabble.com/karaf-assembly-and-
>> config-files-tp4032040p4035790.html>
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org <ma...@apache.org>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: karaf-assembly and config files
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Oliver,
could you share your pom ?
I replied in a Jira and it works fine for me (let me find the Jira).
The problem was just in the execution phase.
Regards
JB
On 10/12/2014 06:16 PM, Oliver Pajonk wrote:
> Hi JB,
>
> I have tried just now 3.0.2-SNAPSHOT and also 3.0.3.-SNAPSHOT from
> https://repository.apache.org/snapshots/. I have switched the version
> for all my Karaf dependencies as well as for the karaf-maven-plugin, but
> it did not help. The file in the ZIP/TAR.GZ is still duplicated, and the
> file target\assembly\etc\org.ops4j.pax.logging.cfg is the default one :-(
>
> Best regards,
> Oliver
>
> 2014-10-12 16:49 GMT+02:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <ma...@nanthrax.net>>:
>
> Hi Olivier,
>
> did you try with 3.0.2-SNAPSHOT (or staging 3.0.2) ?
>
> Regards
> JB
>
> On 10/12/2014 12:31 PM, oliverpajonk wrote:
>
> Hi all,
>
> is there any news on this issue? I hit the same problem today
> and am stuck
> with it: I want to use the karaf-assembly packaging to create my
> distribution (which works just fine). However, I need to
> override a file in
> the /etc directory (custom logging configuration). I do this by
> putting it
> into src/main/resources/etc, but the karaf-assembly packaging
> puts *two*
> files in the ZIP/TAR.GZ: mine, and the default one.
>
> Regards,
> Oliver
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.__com/karaf-assembly-and-config-__files-tp4032040p4035790.html
> <http://karaf.922171.n3.nabble.com/karaf-assembly-and-config-files-tp4032040p4035790.html>
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: karaf-assembly and config files
Posted by Oliver Pajonk <ol...@pjnk.de>.
Hi JB,
I have tried just now 3.0.2-SNAPSHOT and also 3.0.3.-SNAPSHOT from
https://repository.apache.org/snapshots/. I have switched the version for
all my Karaf dependencies as well as for the karaf-maven-plugin, but it did
not help. The file in the ZIP/TAR.GZ is still duplicated, and the
file target\assembly\etc\org.ops4j.pax.logging.cfg is the default one :-(
Best regards,
Oliver
2014-10-12 16:49 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
> Hi Olivier,
>
> did you try with 3.0.2-SNAPSHOT (or staging 3.0.2) ?
>
> Regards
> JB
>
> On 10/12/2014 12:31 PM, oliverpajonk wrote:
>
>> Hi all,
>>
>> is there any news on this issue? I hit the same problem today and am stuck
>> with it: I want to use the karaf-assembly packaging to create my
>> distribution (which works just fine). However, I need to override a file
>> in
>> the /etc directory (custom logging configuration). I do this by putting it
>> into src/main/resources/etc, but the karaf-assembly packaging puts *two*
>> files in the ZIP/TAR.GZ: mine, and the default one.
>>
>> Regards,
>> Oliver
>>
>>
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.
>> com/karaf-assembly-and-config-files-tp4032040p4035790.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: karaf-assembly and config files
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Olivier,
did you try with 3.0.2-SNAPSHOT (or staging 3.0.2) ?
Regards
JB
On 10/12/2014 12:31 PM, oliverpajonk wrote:
> Hi all,
>
> is there any news on this issue? I hit the same problem today and am stuck
> with it: I want to use the karaf-assembly packaging to create my
> distribution (which works just fine). However, I need to override a file in
> the /etc directory (custom logging configuration). I do this by putting it
> into src/main/resources/etc, but the karaf-assembly packaging puts *two*
> files in the ZIP/TAR.GZ: mine, and the default one.
>
> Regards,
> Oliver
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/karaf-assembly-and-config-files-tp4032040p4035790.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: karaf-assembly and config files
Posted by Minto van der Sluis <mi...@xup.nl>.
Hi Oliver,
Have a look at a simple example I once created. You can find it at:
https://github.com/misl/Samples/blob/master/WicketKaraf
To create the assembly it copies (optionally with filtering) files from
src/main/assembly into target/assembly prior to creating the final
ZIP/TAR.GZ archives.
Regards,
Minto
oliverpajonk schreef op 12-10-2014 12:31:
> Hi all,
>
> is there any news on this issue? I hit the same problem today and am stuck
> with it: I want to use the karaf-assembly packaging to create my
> distribution (which works just fine). However, I need to override a file in
> the /etc directory (custom logging configuration). I do this by putting it
> into src/main/resources/etc, but the karaf-assembly packaging puts *two*
> files in the ZIP/TAR.GZ: mine, and the default one.
>
> Regards,
> Oliver
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/karaf-assembly-and-config-files-tp4032040p4035790.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
--
ir. ing. Minto van der Sluis
Software innovator / renovator
Xup BV
Mobiel: +31 (0) 626 014541
Re: karaf-assembly and config files
Posted by oliverpajonk <ol...@pjnk.de>.
Hi all,
is there any news on this issue? I hit the same problem today and am stuck
with it: I want to use the karaf-assembly packaging to create my
distribution (which works just fine). However, I need to override a file in
the /etc directory (custom logging configuration). I do this by putting it
into src/main/resources/etc, but the karaf-assembly packaging puts *two*
files in the ZIP/TAR.GZ: mine, and the default one.
Regards,
Oliver
--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-assembly-and-config-files-tp4032040p4035790.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf-assembly and config files
Posted by Ryan Moquin <fr...@gmail.com>.
If you build a kar, and I think also a distribution, you need to put the
directories you want to override in src/main/resources/resources
That's where the plugin looks at....
On Mar 4, 2014 4:39 AM, "Jean-Baptiste Onofré" <jb...@nanthrax.net> wrote:
> 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
> 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 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">
>> <modelVersion>4.0.0</modelVersion>
>>
>> <groupId>test</groupId>
>> <artifactId>test-custom</artifactId>
>> <version>1.0.0-SNAPSHOT</version>
>> <packaging>karaf-assembly</packaging>
>> <name>${project.artifactId}</name>
>>
>> <properties>
>> <karaf.version>3.0.0</karaf.version>
>> </properties>
>>
>> <dependencies>
>> <dependency>
>> <!-- scope is compile so all features (there is only one) are
>> installed into startup.properties and the feature repo itself is not
>> installed -->
>> <groupId>org.apache.karaf.features</groupId>
>> <artifactId>framework</artifactId>
>> <version>${karaf.version}</version>
>> <type>kar</type>
>> </dependency>
>>
>> <dependency>
>> <!-- 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 -->
>> <groupId>org.apache.karaf.features</groupId>
>> <artifactId>standard</artifactId>
>> <classifier>features</classifier>
>> <version>${karaf.version}</version>
>> <type>xml</type>
>> <scope>runtime</scope>
>> </dependency>
>> </dependencies>
>>
>> <build>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.karaf.tooling</groupId>
>> <artifactId>karaf-maven-plugin</artifactId>
>> <version>3.0.0</version>
>> <extensions>true</extensions>
>> <configuration>
>> <!-- no startupFeatures -->
>> <bootFeatures>
>> <feature>standard</feature>
>> <feature>management</feature>
>> </bootFeatures>
>> <!-- no installedFeatures -->
>> </configuration>
>> </plugin>
>> </plugins>
>> </build>
>> </project>
>>
>> --
>> 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 ?
>>
>> 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.cfg,
>>> but then the final zip contains the file twice in "etc" folder (mine plus
>>> the original one).
>>>
>>> Regards,
>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: karaf-assembly and config files
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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
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 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">
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>test</groupId>
> <artifactId>test-custom</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> <packaging>karaf-assembly</packaging>
> <name>${project.artifactId}</name>
>
> <properties>
> <karaf.version>3.0.0</karaf.version>
> </properties>
>
> <dependencies>
> <dependency>
> <!-- scope is compile so all features (there is only one) are installed into startup.properties and the feature repo itself is not installed -->
> <groupId>org.apache.karaf.features</groupId>
> <artifactId>framework</artifactId>
> <version>${karaf.version}</version>
> <type>kar</type>
> </dependency>
>
> <dependency>
> <!-- 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 -->
> <groupId>org.apache.karaf.features</groupId>
> <artifactId>standard</artifactId>
> <classifier>features</classifier>
> <version>${karaf.version}</version>
> <type>xml</type>
> <scope>runtime</scope>
> </dependency>
> </dependencies>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>karaf-maven-plugin</artifactId>
> <version>3.0.0</version>
> <extensions>true</extensions>
> <configuration>
> <!-- no startupFeatures -->
> <bootFeatures>
> <feature>standard</feature>
> <feature>management</feature>
> </bootFeatures>
> <!-- no installedFeatures -->
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
>
> --
> 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 ?
>
> 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.cfg, but then the final zip contains the file twice in "etc" folder (mine plus the original one).
>>
>> Regards,
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
RE: karaf-assembly and config files
Posted by Dutertry Nicolas <Ni...@HRACCESS.com>.
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">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>test-custom</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>karaf-assembly</packaging>
<name>${project.artifactId}</name>
<properties>
<karaf.version>3.0.0</karaf.version>
</properties>
<dependencies>
<dependency>
<!-- scope is compile so all features (there is only one) are installed into startup.properties and the feature repo itself is not installed -->
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<version>${karaf.version}</version>
<type>kar</type>
</dependency>
<dependency>
<!-- 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 -->
<groupId>org.apache.karaf.features</groupId>
<artifactId>standard</artifactId>
<classifier>features</classifier>
<version>${karaf.version}</version>
<type>xml</type>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>3.0.0</version>
<extensions>true</extensions>
<configuration>
<!-- no startupFeatures -->
<bootFeatures>
<feature>standard</feature>
<feature>management</feature>
</bootFeatures>
<!-- no installedFeatures -->
</configuration>
</plugin>
</plugins>
</build>
</project>
--
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 ?
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.cfg, but then the final zip contains the file twice in "etc" folder (mine plus the original one).
>
> Regards,
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: karaf-assembly and config files
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
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.cfg, but then the final zip contains the file twice in "etc" folder (mine plus the original one).
>
> Regards,
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com