<?xml version="1.0" encoding="UTF-8"?>
<!--
 
      Licensed to the Apache Software Foundation (ASF) under one or more
      contributor license agreements.  See the NOTICE file distributed with
      this work for additional information regarding copyright ownership.
      The ASF licenses this file to You under the Apache License, Version 2.0
      (the "License"); you may not use this file except in compliance with
      the License.  You may obtain a copy of the License at
 
         http://www.apache.org/licenses/LICENSE-2.0
 
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
-->
<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" name="cxf-2.5.0.fuse-70-084">

    <feature name="cxf-specs" version="2.5.0.fuse-70-084" resolver='(obr)'>
        <bundle start-level='10' dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/2.0.0.fuse-70-084</bundle>
        <bundle start-level='10'>mvn:javax.mail/mail/1.4.4</bundle>
        <bundle start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.1.1/2.0.0.fuse-70-084</bundle>
    </feature>

    <feature name='cxf-jaxb' version='2.5.0.fuse-70-084' resolver='(obr)'>
        <feature version="2.5.0.fuse-70-084">cxf-specs</feature>
        <bundle start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.1.1_2</bundle>
        <bundle start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc/2.2.1.1_2</bundle>
    </feature>
    <!-- This feature will be used if jre.properties doesn't exports the javax api packages -->
    <feature name='cxf-api-specs' version='2.5.0.fuse-70-084' resolver='(obr)'>
        <feature version="2.5.0.fuse-70-084">cxf-specs</feature>
        <bundle start-level='9'>mvn:org.apache.geronimo.specs/geronimo-osgi-registry/1.1</bundle>
        <bundle start-level='10' dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.0.0.fuse-70-084</bundle>
        <bundle start-level='10'>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
        <bundle start-level='10'>mvn:org.apache.geronimo.specs/geronimo-ws-metadata_2.0_spec/1.1.3</bundle>
        <bundle start-level='10' dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/2.0.0.fuse-70-084</bundle>
    </feature>
    <!-- Current the abdera bundle is not working as we expect -->
    <feature name='cxf-abdera' version='2.5.0.fuse-70-084' resolver='(obr)'>
        <bundle dependency="true">mvn:commons-codec/commons-codec/1.4</bundle>
        <bundle>mvn:org.apache.ws.commons.axiom/axiom-impl/1.2.10</bundle>
        <bundle>mvn:org.apache.ws.commons.axiom/axiom-api/1.2.10</bundle>

        <bundle>mvn:org.apache.abdera/abdera-core/1.1.2</bundle>
        <bundle>mvn:org.apache.abdera/abdera-extensions-main/1.1.2</bundle>
        <bundle>mvn:org.apache.abdera/abdera-i18n/1.1.2</bundle>
        <bundle>mvn:org.apache.abdera/abdera-parser/1.1.2</bundle>

        <!--bundle>mvn:org.apache.abdera/abdera-extensions-html/1.1.2</bundle>
        <bundle>mvn:org.apache.abdera/abdera-extensions-json/1.1.2</bundle>
        <bundle>mvn:org.apache.abdera/abdera-client/1.1.2</bundle>
        <bundle>mvn:org.apache.abdera/abdera-server/1.1.2</bundle-->
        <feature version='2.5.0.fuse-70-084'>cxf-jaxb</feature>
    </feature>
    <feature name="opensaml" version="2.5.1_2" resolver='(obr)'>
        <bundle>mvn:joda-time/joda-time/1.6.2</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml/2.5.1_2</bundle>
    </feature>
    <feature name="wss4j" version="1.6.6" resolver='(obr)'>
        <feature version='[2.4,3)'>opensaml</feature>
        <bundle dependency="true">mvn:org.apache.santuario/xmlsec/1.5.1</bundle>
        <bundle>mvn:org.apache.ws.security/wss4j/1.6.6</bundle>
    </feature>

    <feature name="cxf-saaj-impl" version="2.5.0.fuse-70-084"  resolver='(obr)'>
        <feature version="2.5.0.fuse-70-084">cxf-specs</feature>
        <bundle start-level='25'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.18_1</bundle>
    </feature>


    <feature name="cxf" version="2.5.0.fuse-70-084" resolver='(obr)'>
        <feature version="2.5.0.fuse-70-084">cxf-specs</feature>
        <bundle>mvn:commons-lang/commons-lang/2.6</bundle>
        <bundle>mvn:commons-collections/commons-collections/3.2.1</bundle>

        <bundle start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.fastinfoset/1.2.7_4</bundle>
        <bundle start-level='20'>mvn:org.codehaus.woodstox/stax2-api/3.1.1</bundle>
        <bundle start-level='20'>mvn:org.codehaus.woodstox/woodstox-core-asl/4.1.2</bundle>

        <feature version='2.5.0.fuse-70-084'>cxf-jaxb</feature>
        <feature version="[2,3)">http</feature>
        <feature version="[3,4)">spring</feature>
        <feature version="[1.2,2)">spring-dm</feature>
        <feature version="[3,4)">spring-jms</feature>
        <feature version="1.6.6">wss4j</feature>
        <feature version="[7.2,8)">jetty</feature>
        <feature version='2.5.0.fuse-70-084'>cxf-abdera</feature>
        <feature version="2.5.0.fuse-70-084">cxf-saaj-impl</feature>

        <bundle dependency="true">mvn:org.apache.neethi/neethi/3.0.2</bundle>
        <bundle dependency="true">mvn:org.apache.ws.xmlschema/xmlschema-core/2.0.2</bundle>

        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.asm/3.3_2</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.wsdl4j/1.6.2_6</bundle>
        <bundle>mvn:org.codehaus.jettison/jettison/1.3.1</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlbeans/2.5.0_2</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.rhino/1.7R2_3</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xerces/2.9.1_5</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.bcel/5.2_4</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan/2.7.1_5</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.oro/2.0.8_6</bundle>
        <bundle dependency="true">mvn:org.apache.velocity/velocity/1.7</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jdom/1.1_4</bundle>

        <bundle start-level='30'>mvn:org.apache.cxf/cxf-bundle/2.5.0.fuse-70-084</bundle>
        <bundle>mvn:org.apache.cxf.karaf/cxf-karaf-commands/2.5.0.fuse-70-084</bundle>
    </feature>

    <feature name="cxf-sts" version="2.5.0.fuse-70-084" resolver='(obr)'>
        <feature version="2.5.0.fuse-70-084">cxf</feature>

        <bundle dependency="true">mvn:com.hazelcast/hazelcast/1.9.4</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache/2.4.3_1</bundle>

        <bundle>mvn:org.apache.cxf.services.sts/cxf-services-sts-core/2.5.0.fuse-70-084</bundle>
    </feature>

    <feature name="cxf-wsn-api" version="2.5.0.fuse-70-084" resolver="(obr)">
        <feature version="2.5.0.fuse-70-084">cxf</feature>
        <bundle>mvn:org.apache.cxf.services.wsn/cxf-services-wsn-api/2.5.0.fuse-70-084</bundle>
    </feature>

    <feature name="cxf-wsn" version="2.5.0.fuse-70-084" resolver="(obr)">

        <config name="org.apache.cxf.wsn">
            cxf.wsn.activemq = vm:localhost
            cxf.wsn.rootUrl = http://0.0.0.0:8182
            cxf.wsn.context = /wsn
        </config>

        <feature version="[5.4,6)">activemq</feature>
        <feature version="2.5.0.fuse-70-084">cxf-wsn-api</feature>

        <bundle>mvn:org.apache.cxf.services.wsn/cxf-services-wsn-core/2.5.0.fuse-70-084</bundle>
    </feature>
</features>
