karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From XiLai Dai <xl...@talend.com>
Subject same feature name exists in multi feature repo url
Date Tue, 23 Oct 2012 03:36:13 GMT
Hi,

One feature xml named feature-a-1.0

<?xml version="1.0" encoding="UTF-8"?>
<features name="feature_a" xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">

  <feature name='myfeature' version='1.0'>
    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jdom/1.1_4</bundle>
  </feature>

</features>

The other feature xml named feature-b-1.0

<features name="feature_b" xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">

  <feature name='myfeature' version='1.0'>
     <bundle>mvn:commons-dbcp/commons-dbcp/1.4</bundle>
  </feature>

</features>

Both of them have a feature named "myfeature"/"1.0". then add feature url to 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 sometimes myfeature
which from the first features xml installed, sometimes from the second features.

Thanks.
Xilai

Mime
View raw message