Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2CE8A200AE8 for ; Tue, 3 May 2016 11:36:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2BABA1609F4; Tue, 3 May 2016 11:36:54 +0200 (CEST) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4D8F81609F3 for ; Tue, 3 May 2016 11:36:53 +0200 (CEST) Received: (qmail 40848 invoked by uid 500); 3 May 2016 09:36:52 -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 40838 invoked by uid 99); 3 May 2016 09:36:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2016 09:36:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DFA4218014A for ; Tue, 3 May 2016 09:36:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.3 X-Spam-Level: ** X-Spam-Status: No, score=2.3 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id keyDJmUIvrFS for ; Tue, 3 May 2016 09:36:49 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 172DC5F295 for ; Tue, 3 May 2016 09:36:49 +0000 (UTC) Received: from [10.44.215.193] ([89.204.135.193]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0LZeo8-1bMwTM2wii-00lUyZ for ; Tue, 03 May 2016 11:36:41 +0200 Subject: Add feature to karaf .kar file From: Christian Lutz Content-Type: multipart/alternative; boundary=Apple-Mail-A9C80187-2333-4484-A07E-E9E464DBB6DB X-Mailer: iPhone Mail (13E238) Message-Id: Date: Tue, 3 May 2016 11:36:35 +0200 To: user@karaf.apache.org Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) X-Provags-ID: V03:K0:PLh850q+PvP6HsQspPlLZmFa2BDOgkHIWqvpdNNgbLX7dteYuvg apcWVk9/UV+ci4zotxid0B3De03W0Z9EPzTn+TOIJVGLn3ZGFFNZtA+yVIzru+SZ/L1CMhc xuTzyojLh+qYLIPJaRM1mXYHt+l4iH9nQnzCIN9vXRE8yy5oinVtTOjlksxPabi7EOrash/ Wy7FgNk1CQxyQmLc5XW0g== X-UI-Out-Filterresults: notjunk:1;V01:K0:Kp7qF41A9Ic=:iiP/tzldn4RMC1xyVhYq3k q3ZCIkx+XzM+99Uo+0W4yiZYWPOkT59cCy2cbUk3FK7lSnADxyZt8hGfAXGEZxaYeM5BodfZA XWj1hNvPcvfZSDzXCE8RKeFRQe8rzkAIKzYE02JgLPvmN65mpEOmMxQB9WW2HFfGLxQyVkOXQ EkWZ0kFudATtK6Y/76e5LN0t37Dny3pn58QCYCNoN/IfDESzx4F5v51pYTQdWvD+FxTQTn/XB hD+TbD/qjrt+oahN8zwyXSNHiJnorBf65UhyM1ZlLm8tvQWkpeXnoRSUfUzPo6n56soNvShKP pyAuRShhiPztDEvguT4+BkPQjZO2Prz+d/upb+a7yaWgbhwGTndIEZSb56S5Wnne7O0jmL9W/ ljuZ+RoRH2pflVVT7A7Poe4y5q9Tcdepy22y/AcjVFXDYfIo+b5D5iBcfem4ns4/IX94VofhS XsLo4KNl3rYpgPk5468ZMG6zRw+VfZ1FO9lOjiRXKxC0x+hZCvzVvZKdWrnUYFwBuEJkzZzGp VliqejbUgPJvPVoIBtxfpkOJiCLPJq/t7chi5JrypRPccKDqmzEeIGxxfZkJgHGSETX3gzKJa IVP4cIQEuf4QzSPKFPkSNpKo+4NwV2v3Bm9cx4HuDP+rT0MXEEFKY64GGXuLdjkFSGD+obH3W AvLA3XiM+U8EqKbRnUM1CUHyVXaAVYWMJ1IQRFDd6ASb4OlOFEAyEwvlstzdMreEDum36eJzQ OV3NyN2C/7od8BDmMndKegXZDVD49idsyjgGMg== archived-at: Tue, 03 May 2016 09:36:54 -0000 --Apple-Mail-A9C80187-2333-4484-A07E-E9E464DBB6DB Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hello, =20 I do have feature.xml as basic for my kar file. =20 cxf-rs-security-cors own-adapter-feature mvn:de.spray.server/server-orm/1.0.0 mvn:de.spray.server/spray-server/1.0.0 =20 I create the kar file with karaf-maven-plugin.=20 =20 org.apache.karaf.tooling karaf-maven-plugin 4.0.5 true false true true =20 =20 I do have two different feature within my feature.xml cxf-rs-security-cors a= nd own-adapter-feature.=20 Is it somehow possible to add all bundles from the own-adapter-feature (but n= ot from cxf-rs-security-cors ) into the kar file? I did expect that this sho= uld be possible with aggregateFeatures=3Dtrue but nothing from own-adapter-f= eature or cxf-rs-security-cors had been added.=20 =20 I also tried to add the feature as dependency within=20 =20 de.spray own-adapter-feature features 1.0.0 xml runtime =20 But this didn't work either. I do know i could copy alle the dependencies in= to my own feature.xml but then I do have to care about to features. =20 Thanks Christian =20 =20 --Apple-Mail-A9C80187-2333-4484-A07E-E9E464DBB6DB Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello,=
=  
I do have feature.xml as basic for my kar file.
 
<?xml version=3D= "1.0" encoding=3D"UTF-8"?>
<features name=3D"spray-server-1.0.0" xm= lns=3D"http://kara= f.apache.org/xmlns/features/v1.3.0">
 <feature name=3D"spray-s= erver" version=3D"1.0.0">
  <feature>cxf-rs-security-c= ors</feature>
  <feature>own-adapter-feature</fe= ature>
  <bundle>mvn:de.spray.server/server-orm/1.0.0&= lt;/bundle>
  <bundle>mvn:de.spray.server/spray-server= /1.0.0</bundle>
 </feature>
</features>
<= /div>
 
I c= reate the kar file with karaf-maven-plugin. 
 
 <plugins>=
   <plugin>

 <groupId>org.apache.kara= f.tooling</groupId>
    <artifactId>karaf= -maven-plugin</artifactId>
    <version>4= .0.5</version>
    <extensions>true</e= xtensions>
    <configuration>
 &nbs= p;   <includeTransitiveDependency>false</includeTran= sitiveDependency>
     <aggregateFeatures&= gt;true</aggregateFeatures>
     <addBu= ndlesToPrimaryFeature>true</addBundlesToPrimaryFeature>
 &n= bsp;  </configuration>
   </plugin><= br>  </plugins>
 
 
I do have two different feature w= ithin my feature.xml cxf-rs-security-cors and own-adapter-fea= ture. 
Is it somehow possible to add all bundles from the own-adapt= er-feature (but not from cxf-rs-security-cors ) into the kar f= ile? I did expect that this should be possible with aggregateFeatures=3D= true but nothing from own-adapter-feature or cxf-rs-security-cors&= nbsp; had been added. 
 
I also tried to add the feature as dependen= cy within 
 
<dependencies>
  <dependency>   <groupId>de.spray</groupId>
  &= nbsp;<artifactId>own-adapter-feature</artifactId>
  = ; <classifier>features</classifier>
   &l= t;version>1.0.0</version>
   <type>xml</= type>
   <scope>runtime</scope>
 &n= bsp;</dependency>
 </dependencies>
 
But this didn't w= ork either. I do know i could copy alle the dependencies into my own feature= .xml but then I do have to care about to features.
 
Thanks
<= div>Christian
 = ;
 
= --Apple-Mail-A9C80187-2333-4484-A07E-E9E464DBB6DB--