hi 

for myself i have defined a standard packaging for karaf based containers. 
usually i extract the karaf version using the maven dependency plugin and keep 
the files i want to replace in the src/main/resources of my packaging project. 
then i use the assembly plugin to merge everything and create a new tar file.

there are examples in my github project: woq-blended/blended. have a look at 
the blendef-karaf-demo packaging.

hope that helps
andreas

Joerg Ehrlich <[email protected]> wrote:

><!-- /* Font Definitions */ @font-face         {font-family:Helvetica;         
>panose-1:2 11 6 4 2 2 2 2 2 4;} @font-face      {font-family:"MS Mincho";      
> panose-1:2 2 6 9 4 2 5 8 3 4;} @font-face       {font-family:"Cambria Math";  
>  panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face       {font-family:Calibri;   
>panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face      {font-family:"\@MS Mincho";    
> panose-1:2 2 6 9 4 2 5 8 3 4;} /* Style Definitions */ p.MsoNormal, 
>li.MsoNormal, div.MsoNormal         {margin:0cm;    margin-bottom:.0001pt;  
>font-size:11.0pt;       font-family:"Calibri","sans-serif";} a:link, 
>span.MsoHyperlink  {mso-style-priority:99;         color:#0563C1;  
>text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed        
>{mso-style-priority:99;         color:#954F72;  text-decoration:underline;} 
>span.EmailStyle17   {mso-style-type:personal-compose;       
>font-family:"Calibri","sans-serif";     color:windowtext;} .MsoChpDefault      
> {mso-style-type:export-only;} @page WordSection1        {size:612.0pt 
>792.0pt;  margin:70.85pt 70.85pt 2.0cm 70.85pt;} div.WordSection1         
>{page:WordSection1;} --> 
>
>Hi,
>
> 
>
>while creating a Karaf assembly using the “karaf-assembly” Maven goal I would 
>like to overwrite standard Karaf files (e.g. in bin or etc) with custom ones 
>provided by project resources (i.e. src/main/resources). The current behavior 
>(for ZIP and TAR) is that files with the same name both end up in the archive, 
>i.e. it seems it is currently not possible to actually replace assembly files 
>with project resources or the other way around.
>
>There is one possible work-around using Maven resource plug-in to overwrite 
>the files in assembly folder before karaf:instance-create-archive goal is 
>invoked but that requires to move the files into a non-standard resource 
>folder. Would be great to keep the default maven mechanisms in combination 
>with Karaf plug-in.
>
> 
>
>Any recommendations how solve this?
>
>Thanks
>
>Jörg
>

Reply via email to