<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--

      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 name="spring-4.2.3" xmlns="http://karaf.apache.org/xmlns/features/v1.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 http://karaf.apache.org/xmlns/features/v1.3.0">

    <!-- NB: this file is not the one really used. This file is used by the karaf-maven-plugin to define the start-level of bundles in the generated feature.xml -->

    <repository>mvn:org.apache.karaf.features/standard/4.2.3/xml/features</repository>

    <!-- Spring 5.0.x support -->

    <feature name="spring" description="Spring 5.0.x support" version="5.0.12.RELEASE_1">
        <bundle dependency="true" start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_6</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/5.0.12.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/5.0.12.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/5.0.12.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/5.0.12.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/5.0.12.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/5.0.12.RELEASE_1</bundle>
    </feature>

    <feature name="spring-aspects" description="Spring 5.0.x AOP support" version="5.0.12.RELEASE_1">
        <feature version="[5.0.12.RELEASE_1,5.1)">spring</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aspects/5.0.12.RELEASE_1</bundle>
    </feature>

    <feature name="spring-instrument" description="Spring 5.0.x Instrument support" version="5.0.12.RELEASE_1">
        <feature version="[5.0.12.RELEASE_1,5.1)">spring</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-instrument/5.0.12.RELEASE_1</bundle>
    </feature>

    <feature name="spring-jdbc" description="Spring 5.0.x JDBC support" version="5.0.12.RELEASE_1">
        <feature version="[5.0.12.RELEASE_1,5.1)">spring-tx</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jdbc/5.0.12.RELEASE_1</bundle>
    </feature>

    <feature name="spring-jms" description="Spring 5.0.x JMS support" version="5.0.12.RELEASE_1">
        <feature version="[5.0.12.RELEASE_1,5.1)">spring-tx</feature>
        <bundle dependency="true" start-level="10">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
        <bundle dependency="true" start-level="10">mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/5.0.12.RELEASE_1</bundle>
    </feature>

    <feature name="spring-test" description="Spring 5.0.x Test support" version="5.0.12.RELEASE_1">
        <feature version="[5.0.12.RELEASE_1,5.1)">spring</feature>
        <bundle dependency="true">mvn:javax.websocket/javax.websocket-api/1.1</bundle>
        <bundle dependency="true">mvn:org.apache.httpcomponents/httpcore-osgi/4.4.6</bundle>
        <bundle dependency="true">mvn:org.apache.httpcomponents/httpclient-osgi/4.5.2</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-test/5.0.12.RELEASE_1</bundle>
    </feature>

    <feature name="spring-orm" description="Spring 5.0.x ORM support" version="5.0.12.RELEASE_1">
        <feature version="[5.0.12.RELEASE_1,5.1)">spring-jdbc</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-orm/5.0.12.RELEASE_1</bundle>
    </feature>

    <feature name="spring-oxm" description="Spring 5.0.x OXM support" version="5.0.12.RELEASE_1">
        <feature version="[5.0.12.RELEASE_1,5.1)">spring</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-oxm/5.0.12.RELEASE_1</bundle>
    </feature>

    <feature name="spring-tx" description="Spring 5.0.x Transaction (TX) support" version="5.0.12.RELEASE_1">
        <feature version="[5.0.12.RELEASE_1,5.1)">spring</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/5.0.12.RELEASE_1</bundle>
    </feature>

    <feature name="spring-web" description="Spring 5.0.x Web support" version="5.0.12.RELEASE_1">
        <feature version="[5.0.12.RELEASE_1,5.1)">spring</feature>
        <feature>http</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web/5.0.12.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-webmvc/5.0.12.RELEASE_1</bundle>
    </feature>

    <feature name="spring-websocket" description="Spring 5.0.x WebSocket support" version="5.0.12.RELEASE_1">
        <bundle dependency="true">mvn:javax.websocket/javax.websocket-api/1.1</bundle>
        <feature version="[5.0.12.RELEASE_1,5.1)">spring-web</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-websocket/5.0.12.RELEASE_1</bundle>
    </feature>

    <!-- Spring 5.0.x support -->

    <feature name="spring" description="Spring 5.1.x support" version="5.1.4.RELEASE_1">
        <bundle dependency="true" start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_6</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/5.1.4.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-expression/5.1.4.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/5.1.4.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/5.1.4.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/5.1.4.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/5.1.4.RELEASE_1</bundle>
    </feature>

    <feature name="spring-aspects" description="Spring 5.1.x AOP support" version="5.1.4.RELEASE_1">
        <feature version="[5.1.4.RELEASE_1,5.2)">spring</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aspects/5.1.4.RELEASE_1</bundle>
    </feature>

    <feature name="spring-instrument" description="Spring 5.1.x Instrument support" version="5.1.4.RELEASE_1">
        <feature version="[5.1.4.RELEASE_1,5.2)">spring</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-instrument/5.1.4.RELEASE_1</bundle>
    </feature>

    <feature name="spring-jdbc" description="Spring 5.1.x JDBC support" version="5.1.4.RELEASE_1">
        <feature version="[5.1.4.RELEASE_1,5.2)">spring-tx</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jdbc/5.1.4.RELEASE_1</bundle>
    </feature>

    <feature name="spring-jms" description="Spring 5.1.x JMS support" version="5.1.4.RELEASE_1">
        <feature version="[5.1.4.RELEASE_1,5.2)">spring-tx</feature>
        <bundle dependency="true" start-level="10">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
        <bundle dependency="true" start-level="10">mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-jms/5.1.4.RELEASE_1</bundle>
    </feature>

    <feature name="spring-test" description="Spring 5.1.x Test support" version="5.1.4.RELEASE_1">
        <feature version="[5.1.4.RELEASE_1,5.2)">spring</feature>
        <bundle dependency="true">mvn:javax.websocket/javax.websocket-api/1.1</bundle>
        <bundle dependency="true">mvn:org.apache.httpcomponents/httpcore-osgi/4.4.6</bundle>
        <bundle dependency="true">mvn:org.apache.httpcomponents/httpclient-osgi/4.5.2</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-test/5.1.4.RELEASE_1</bundle>
    </feature>

    <feature name="spring-orm" description="Spring 5.1.x ORM support" version="5.1.4.RELEASE_1">
        <feature version="[5.1.4.RELEASE_1,5.2)">spring-jdbc</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-orm/5.1.4.RELEASE_1</bundle>
    </feature>

    <feature name="spring-oxm" description="Spring 5.1.x OXM support" version="5.1.4.RELEASE_1">
        <feature version="[5.1.4.RELEASE_1,5.2)">spring</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-oxm/5.1.4.RELEASE_1</bundle>
    </feature>

    <feature name="spring-tx" description="Spring 5.1.x Transaction (TX) support" version="5.1.4.RELEASE_1">
        <feature version="[5.1.4.RELEASE_1,5.2)">spring</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-tx/5.1.4.RELEASE_1</bundle>
    </feature>

    <feature name="spring-web" description="Spring 5.1.x Web support" version="5.1.4.RELEASE_1">
        <feature version="[5.1.4.RELEASE_1,5.2)">spring</feature>
        <feature>http</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web/5.1.4.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-webmvc/5.1.4.RELEASE_1</bundle>
    </feature>

    <feature name="spring-websocket" description="Spring 5.1.x WebSocket support" version="5.1.4.RELEASE_1">
        <bundle dependency="true">mvn:javax.websocket/javax.websocket-api/1.1</bundle>
        <feature version="[5.1.4.RELEASE_1,5.2)">spring-web</feature>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-websocket/5.1.4.RELEASE_1</bundle>
    </feature>

    <!-- Spring Security -->

    <feature name="spring-security" description="Spring Security 5.1.x support" version="5.1.3.RELEASE_1">
        <feature>war</feature>
        <feature version="[5.1,6)">spring-jdbc</feature>
        <feature version="[5.1,6)">spring-tx</feature>
        <feature version="[5.1,6)">spring-web</feature>
        <bundle dependency="true">mvn:com.fasterxml.jackson.core/jackson-core/2.9.6</bundle>
        <bundle dependency="true">mvn:com.fasterxml.jackson.core/jackson-annotations/2.9.6</bundle>
        <bundle dependency="true">mvn:com.fasterxml.jackson.core/jackson-databind/2.9.6</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aspectj/1.7.4_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-security-core/5.1.3.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-security-config/5.1.3.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-security-web/5.1.3.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-security-acl/5.1.3.RELEASE_1</bundle>
        <bundle start-level="30">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-security-taglibs/5.1.3.RELEASE_1</bundle>
    </feature>

    <!-- Aries Blueprint Spring support -->

    <feature name="aries-blueprint-spring">
        <feature>aries-blueprint</feature>
        <feature>spring</feature>
        <bundle>mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.spring/0.6.0</bundle>
        <bundle>mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.spring.extender/0.4.0</bundle>
    </feature>

</features>
