Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 659DDD2AF for ; Tue, 23 Oct 2012 03:36:47 +0000 (UTC) Received: (qmail 14260 invoked by uid 500); 23 Oct 2012 03:36:47 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 14078 invoked by uid 500); 23 Oct 2012 03:36:46 -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 14028 invoked by uid 99); 23 Oct 2012 03:36:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2012 03:36:44 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xldai@talend.com designates 64.95.72.241 as permitted sender) Received: from [64.95.72.241] (HELO mxout.myoutlookonline.com) (64.95.72.241) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2012 03:36:36 +0000 Received: from mxout.myoutlookonline.com (localhost [127.0.0.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id 77372416944 for ; Mon, 22 Oct 2012 17:30:48 -0400 (EDT) X-Virus-Scanned: by SpamTitan at mail.lan Received: from S10HUB002.SH10.lan (unknown [10.110.2.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id B885E4168E4 for ; Mon, 22 Oct 2012 17:30:47 -0400 (EDT) Received: from S10BE002.SH10.lan ([::1]) by S10HUB002.SH10.lan ([::1]) with mapi id 14.01.0379.000; Mon, 22 Oct 2012 23:36:13 -0400 From: XiLai Dai To: "user@karaf.apache.org" Subject: same feature name exists in multi feature repo url Thread-Topic: same feature name exists in multi feature repo url Thread-Index: Ac2wz4rSJtdxlPsESJib3nN5cfJVug== Date: Tue, 23 Oct 2012 03:36:13 +0000 Message-ID: <3CE232B101735842A33D70BBAF691C93E2FFE9@S10BE002.SH10.lan> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [60.247.124.182] Content-Type: multipart/alternative; boundary="_000_3CE232B101735842A33D70BBAF691C93E2FFE9S10BE002SH10lan_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_3CE232B101735842A33D70BBAF691C93E2FFE9S10BE002SH10lan_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, One feature xml named feature-a-1.0 mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles= .jdom/1.1_4 The other feature xml named feature-b-1.0 mvn:commons-dbcp/commons-dbcp/1.4 Both of them have a feature named "myfeature"/"1.0". then add feature url t= o karaf: karaf@root>features:addurl mvn:org.test/features_a/1.0/xml karaf@root>features:addurl mvn:org.test/features_b/1.0/xml then install myfeature: karaf@root>features:install myfeature which is the expected search order for myfeature? I did some test but some= times myfeature which from the first features xml installed, sometimes from= the second features. Thanks. Xilai --_000_3CE232B101735842A33D70BBAF691C93E2FFE9S10BE002SH10lan_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

One feature xml named feature-a= -1.0

 

<?xml version=3D"1.0&qu= ot; encoding=3D"UTF-8"?>

<features name=3D"featu= re_a" xmlns=3D"http://karaf.apache.org/xmlns/features/v1.0.0"= ;>

 

  <feature name=3D'myfe= ature' version=3D'1.0'>

    <bundle&g= t;mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jdom/1.1_= 4</bundle>

  </feature>

 

</features>

 

The other feature xml named fea= ture-b-1.0

 

<features name=3D"featu= re_b" xmlns=3D"http://karaf.apache.org/xmlns/features/v1.0.0"= ;>

 

  <feature name=3D'myfe= ature' version=3D'1.0'>

     <bu= ndle>mvn:commons-dbcp/commons-dbcp/1.4</bundle><= /p>

  </feature>

 

</features>

 

Both of them have a feature nam= ed “myfeature”/”1.0”. then add feature url to karaf= :

 

karaf@root>features:addurl m= vn:org.test/features_a/1.0/xml

karaf@root>features:addurl m= vn:org.test/features_b/1.0/xml

 

then install myfeature:  k= araf@root>features:install myfeature

 

which is the expected search or= der for myfeature?  I did some test but sometimes myfeature which from= the first features xml installed, sometimes from the second features.=

 

Thanks.

Xilai

--_000_3CE232B101735842A33D70BBAF691C93E2FFE9S10BE002SH10lan_--