Re: karaf-assembly and config files

2014-10-13 Thread Jean-Baptiste Onofré

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é mailto:j...@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é mailto:j...@nanthrax.net>
<mailto:j...@nanthrax.net <mailto:j...@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é
mailto:j...@nanthrax.net>
 <mailto:j...@nanthrax.net <mailto:j...@nanthrax.net>>
 <mailto:j...@nanthrax.net <mailto:j...@nanthrax.net>
<mailto:j...@nanthrax.net <mailto:j...@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é
jbono...@apache.org <mailto:jbono...@apache.org>
<mailto:jbono.

Re: karaf-assembly and config files

2014-10-13 Thread Oliver Pajonk
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é :

> 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é > <mailto:j...@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é > <mailto:j...@nanthrax.net>
>> <mailto:j...@nanthrax.net <mailto:j...@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é
>> jbono...@apache.org <mailto:jbono...@apache.org>
>> <mailto:jbono...@apache.org <mailto:jbono...@apache.org>>
>> http://blog.nanthrax.net
>>  Talend - http://www.talend.com
>>
>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbono...@apache.org <mailto:jbono...@apache.org>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>


Re: karaf-assembly and config files

2014-10-13 Thread Jean-Baptiste Onofré

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é mailto:j...@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é mailto:j...@nanthrax.net>
<mailto:j...@nanthrax.net <mailto:j...@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é
jbono...@apache.org <mailto:jbono...@apache.org>
<mailto:jbono...@apache.org <mailto:jbono...@apache.org>>
http://blog.nanthrax.net
 Talend - http://www.talend.com



--
Jean-Baptiste Onofré
jbono...@apache.org <mailto:jbono...@apache.org>
http://blog.nanthrax.net
Talend - http://www.talend.com




--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: karaf-assembly and config files

2014-10-13 Thread Jean-Baptiste Onofré

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é mailto:j...@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é mailto:j...@nanthrax.net>
<mailto:j...@nanthrax.net <mailto:j...@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é
jbono...@apache.org <mailto:jbono...@apache.org>
<mailto:jbono...@apache.org <mailto:jbono...@apache.org>>
http://blog.nanthrax.net
 Talend - http://www.talend.com



--
Jean-Baptiste Onofré
jbono...@apache.org <mailto:jbono...@apache.org>
http://blog.nanthrax.net
Talend - http://www.talend.com




--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: karaf-assembly and config files

2014-10-13 Thread Minto van der Sluis
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

2014-10-12 Thread Jean-Baptiste Onofré

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é mailto:j...@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é mailto:j...@nanthrax.net>
<mailto:j...@nanthrax.net <mailto:j...@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é
jbono...@apache.org <mailto:jbono...@apache.org>
<mailto:jbono...@apache.org <mailto:jbono...@apache.org>>
http://blog.nanthrax.net
 Talend - http://www.talend.com



--
Jean-Baptiste Onofré
jbono...@apache.org <mailto:jbono...@apache.org>
http://blog.nanthrax.net
Talend - http://www.talend.com




--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: karaf-assembly and config files

2014-10-12 Thread Oliver Pajonk
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é :

> 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é > <mailto:j...@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é
>> jbono...@apache.org <mailto:jbono...@apache.org>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
	4.0.0

	
		karaf-application
		obfuscatedgroupid
		0.0.1-SNAPSHOT
	

	obfuscatedartifactid
	karaf-assembly

	ObfuscatedApplicationName [Distribution]
	Apache Karaf distribution for ObfuscatedApplicationName

	
		
			org.apache.karaf.features
			framework
			kar
		
		
			org.apache.karaf.features
			standard
			features
			xml
			runtime
		
		
			org.apache.karaf.features
			enterprise
			features
			xml
			runtime
		
		
			org.apache.karaf.features
			spring
			features
			xml
			runtime
		
		
			obfuscatedgroupid
			features-obfuscatedartifactid
			0.0.1-SNAPSHOT
			features
			xml
			runtime
		
		
			obfuscatedgroupid
			obfuscatedartifactid.branding
			0.0.1-SNAPSHOT
		
	

	
		
			

	org.apache.karaf.tooling
	karaf-maven-plugin
	${version.apache-karaf}
	true



	org.eclipse.m2e
	lifecycle-mapping
	1.0.0
	
		
			

	
		
			org.apache.karaf.tooling
		
		
			karaf-maven-plugin
		
		
			[3.0.0,)
		
		
			install-kars
		
	
	
		
	


	
		
			org.apache.maven.plugins
		
		
			maven-dependency-plugin
		
		
			[2.1,)
		
		
			copy
		
	
	
		
	

			
		
	

			
		
		
			
org.apache.karaf.tooling
karaf-maven-plugin

	
		standard
		management
		jndi
		openjpa
		jdbc
	
	
		features-obfuscatedartifactid
	

			
			
org.apache.maven.plugins
maven-dependency-plugin

	
		copy
		generate-resources
		
			copy
		
		
			

	obfuscatedgroupid
	obfuscatedartifactid.branding
	0.0.1-SNAPSHOT
	target/assembly/lib
	obfuscatedartifactid.branding.jar

			
		
	

			
		
	



Re: karaf-assembly and config files

2014-10-12 Thread Jean-Baptiste Onofré

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é mailto:j...@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é
jbono...@apache.org <mailto:jbono...@apache.org>
http://blog.nanthrax.net
Talend - http://www.talend.com




--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: karaf-assembly and config files

2014-10-12 Thread Oliver Pajonk
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é :

> 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é
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>


Re: karaf-assembly and config files

2014-10-12 Thread Jean-Baptiste Onofré

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é
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: karaf-assembly and config files

2014-10-12 Thread oliverpajonk
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

2014-03-04 Thread Ryan Moquin
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é"  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 :
>>
>> 
>> 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";>
>>  4.0.0
>>
>>  test
>>  test-custom
>>  1.0.0-SNAPSHOT
>>  karaf-assembly
>>  ${project.artifactId}
>>
>>  
>>  3.0.0
>>  
>>
>>  
>>  
>>  
>>  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é [mailto:j...@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é
>> jbono...@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>


Re: karaf-assembly and config files

2014-03-04 Thread Jean-Baptiste Onofré

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 :


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";>
 4.0.0

 test
 test-custom
 1.0.0-SNAPSHOT
 karaf-assembly
 ${project.artifactId}

 
 3.0.0
 

 
 
 
 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é [mailto:j...@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é
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


RE: karaf-assembly and config files

2014-03-04 Thread Dutertry Nicolas
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 :


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";>
4.0.0

test
test-custom
1.0.0-SNAPSHOT
karaf-assembly
${project.artifactId}


3.0.0





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é [mailto:j...@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é
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
ScanMail detected and removed a file named "test-custom-1.0.0-SNAPSHOT.zip" 
that violated attachment blocking policy from the original mail entity. You can 
safely save or delete this replacement attachment.

Re: karaf-assembly and config files

2014-03-04 Thread Jean-Baptiste Onofré

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é
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


karaf-assembly and config files

2014-03-04 Thread Dutertry Nicolas
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