<?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 name="karaf-enterprise-2.4.0.redhat-630488" xmlns="http://karaf.apache.org/xmlns/features/v1.2.0">

    <repository>mvn:org.apache.karaf.assemblies.features/standard/2.4.0.redhat-630488/xml/features</repository>
    <repository>mvn:org.apache.karaf.assemblies.features/pax-cdi-features/2.4.0.redhat-630488/xml/features</repository>

    <feature name="transaction" description="OSGi Transaction Manager" version="1.3.3" resolver="(obr)">
        <details>JTA implementation provided by Apache Aries Transaction 1.3.3</details>
        <config name="org.apache.aries.transaction">
            aries.transaction.recoverable = true
            aries.transaction.timeout = 600
            aries.transaction.howl.logFileDir = ${karaf.data}/txlog
            aries.transaction.howl.maxLogFiles = 2
            aries.transaction.howl.maxBlocksPerFile = 512
            aries.transaction.howl.bufferSize = 4
        </config>
        <bundle dependency="true" start-level="30">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
        <bundle dependency="true" start-level="20">mvn:org.apache.aries/org.apache.aries.util/1.1.3</bundle>
        <bundle start-level="30">mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/1.3.3</bundle>
        <conditional>
            <condition>aries-blueprint</condition>
            <bundle start-level="30">mvn:org.apache.aries.transaction/org.apache.aries.transaction.blueprint/1.0.2</bundle>
        </conditional>
    </feature>

    <feature name="connector" description="OSGi support for JCA Connector 1.6" version="3.1.1" resolver="(obr)">
        <details>OSGi support for JCA Connector 1.6</details>
        <feature version="[1.1,2)">transaction</feature>
        <bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-j2ee-connector_1.6_spec/1.0</bundle>
        <bundle dependency="true">mvn:javax.validation/validation-api/1.1.0.Final-redhat-1</bundle>
        <bundle>mvn:org.apache.geronimo.components/geronimo-connector/3.1.1</bundle>
        <bundle start-level="30">mvn:org.apache.aries.transaction/org.apache.aries.transaction.jdbc/2.1.3</bundle>
    </feature>

    <feature name="jpa" description="OSGi Persistence Container 2.0" version="1.0.2" resolver="(obr)">
        <details>JPA 2.0 implementation provided by Apache Aries JPA 1.0.1. NB: this feature doesn't provide the JPA engine, you have to install one by yourself (OpenJPA for instance)</details>
        <bundle dependency="true" start-level="30">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
        <bundle dependency="true" start-level="30">mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1</bundle>
        <bundle dependency="true" start-level="20">mvn:org.apache.aries/org.apache.aries.util/1.1.3</bundle>
        <bundle start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/1.0.2</bundle>
        <bundle start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.4</bundle>
        <bundle start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.container.context/1.0.4</bundle>
        <conditional>
            <condition>aries-blueprint</condition>
            <bundle start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint.aries/1.0.4</bundle>
        </conditional>
    </feature>

    <feature name="openjpa" description="Apache OpenJPA 2.3.x persistence engine support" version="2.3.0" resolver="(obr)">
        <details>Enable Apache OpenJPA as persistence engine.</details>
        <bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
        <bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1</bundle>
        <bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-servlet_2.5_spec/1.2</bundle>
        <bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-el_1.0_spec/1.0.1</bundle>
        <bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
        <bundle dependency="true">mvn:commons-lang/commons-lang/2.6.0.redhat-5</bundle>
        <bundle dependency="true">mvn:commons-collections/commons-collections/3.2.2.redhat-2</bundle>
        <bundle dependency="true">mvn:commons-pool/commons-pool/1.6.0.redhat-9</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.4_3</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/1.7.0_6</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.serp/1.14.1_1</bundle>
        <bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
        <bundle dependency="true">mvn:org.apache.xbean/xbean-asm4-shaded/3.16</bundle>
        <bundle start-level="29">mvn:org.apache.openjpa/openjpa/2.3.0</bundle>
        <feature>jpa</feature>
    </feature>

    <feature name="hibernate" description="Hibernate 4.2.x JPA persistence engine support" version="4.2.22.Final-redhat-1" resolver="(obr)">
        <details>Enable Hibernate 4.2.x as persistence engine.</details>
        <feature>transaction</feature>
        <feature>http</feature>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/2.7.7_5</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/1.7.0_6</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6.1_5</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.serp/1.14.1_1</bundle>
        <bundle dependency="true">mvn:com.fasterxml/classmate/1.3.1</bundle>
        <bundle dependency="true">mvn:org.javassist/javassist/3.19.0-GA</bundle>
        <bundle dependency="true">mvn:org.jboss.spec.javax.security.jacc/jboss-jacc-api_1.4_spec/1.0.2.Final</bundle>
        <bundle dependency="true">wrap:mvn:org.jboss/jandex/1.1.0.Final</bundle>
        <bundle dependency="true">mvn:org.jboss.logging/jboss-logging/3.3.0.Final-redhat-1</bundle>
        <bundle dependency="true">mvn:org.hibernate.common/hibernate-commons-annotations/4.0.4.Final</bundle>
        <bundle start-level="100">mvn:org.hibernate/hibernate-core/4.2.22.Final-redhat-1</bundle>
        <bundle start-level="100">mvn:org.hibernate/hibernate-entitymanager/4.2.22.Final-redhat-1</bundle>
        <bundle start-level="100">mvn:org.hibernate/hibernate-osgi/4.2.22.Final-redhat-1</bundle>
        <feature>jpa</feature>
    </feature>

    <feature name="hibernate-envers" description="Hibernate Envers 4.2.x" version="4.2.22.Final-redhat-1" resolver="(obr)">
        <details>Enable Hibernate Envers 4.2.x</details>
        <feature version="4.2.22.Final-redhat-1">hibernate</feature>
        <bundle start-level="100">mvn:org.hibernate/hibernate-envers/4.2.22.Final-redhat-1</bundle>
    </feature>

    <feature name="hibernate-validator" description="Hibernate Validator support" version="5.2.5.Final-redhat-2" resolver="(obr)">
        <bundle dependency="true">mvn:javax.validation/validation-api/1.1.0.Final-redhat-1</bundle>
        <bundle dependency="true">mvn:com.fasterxml/classmate/1.3.1</bundle>
        <bundle dependency="true">mvn:javax.el/javax.el-api/2.2.5</bundle>
        <bundle dependency="true">mvn:org.glassfish.web/javax.el/2.2.5</bundle>
        <bundle>mvn:org.hibernate/hibernate-validator/5.2.5.Final-redhat-2</bundle>
        <bundle dependency="true">mvn:org.jboss.logging/jboss-logging/3.3.0.Final-redhat-1</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.paranamer/2.8_1</bundle>
        <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsoup/1.5.2_2</bundle>
        <bundle>mvn:joda-time/joda-time/2.9.2</bundle>
    </feature>

    <feature name="jndi" description="OSGi Service Registry JNDI access" version="1.0.0" resolver="(obr)">
        <details>JNDI support provided by Apache Aries JNDI 1.0.0</details>
        <feature>management</feature>
        <bundle start-level="30">mvn:org.apache.xbean/xbean-naming/3.18</bundle>
        <bundle start-level="30">mvn:org.apache.karaf.jndi/org.apache.karaf.jndi.core/2.4.0.redhat-630488</bundle>
        <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.api/1.1.0</bundle>
        <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.core/1.0.2</bundle>
        <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.rmi/1.0.0</bundle>
        <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.url/1.1.0</bundle>
        <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.legacy.support/1.0.0</bundle>
        <conditional>
            <condition>shell</condition>
            <bundle>mvn:org.apache.karaf.jndi/org.apache.karaf.jndi.command/2.4.0.redhat-630488</bundle>
        </conditional>
    </feature>

    <feature name="jdbc" description="JDBC service and commands" version="2.4.0.redhat-630488" resolver="(obr)">
        <details>JDBC support providing service, commands, and MBean</details>
        <feature>transaction</feature>
        <feature>management</feature>
        <bundle>mvn:commons-pool/commons-pool/1.6.0.redhat-9</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.4_3</bundle>
        <bundle>mvn:org.apache.karaf.jdbc/org.apache.karaf.jdbc.core/2.4.0.redhat-630488</bundle>
        <conditional>
            <condition>shell</condition>
            <bundle>mvn:org.apache.karaf.jdbc/org.apache.karaf.jdbc.command/2.4.0.redhat-630488</bundle>
        </conditional>
    </feature>

    <feature name="jms" description="JMS service and commands" version="2.4.0.redhat-630488" resolver="(obr)">
        <details>JMS support provinding service, commands, and MBean.</details>
        <feature>transaction</feature>
        <feature>management</feature>
        <bundle dependency="true">mvn:javax.jms/javax.jms-api/2.0.1</bundle>
        <bundle>mvn:org.apache.karaf.jms/org.apache.karaf.jms.core/2.4.0.redhat-630488</bundle>
        <conditional>
            <condition>shell</condition>
            <bundle>mvn:org.apache.karaf.jms/org.apache.karaf.jms.command/2.4.0.redhat-630488</bundle>
        </conditional>
    </feature>

    <feature name="weld" description="JBoss Weld CDI container support" version="2.3.2.Final" resolver="(obr)">
        <details>Add support of JBoss Weld CDI container.</details>
        <feature>pax-cdi-weld</feature>
    </feature>

    <feature name="application-without-isolation" description="Provide EBA archive support" version="1.0.0">
        <details>Support of the Aries EBA archives</details>
        <feature>aries-blueprint</feature>
        <feature version="2.4.0.redhat-630488">obr</feature>
        <!-- commom -->
        <bundle start-level="30">mvn:org.apache.aries.application/org.apache.aries.application.resolver.obr/1.0.0</bundle>
        <bundle start-level="30">mvn:org.apache.aries.application/org.apache.aries.application.install/1.0.0</bundle>
        <bundle start-level="30">mvn:org.apache.aries.application/org.apache.aries.application.api/1.0.0</bundle>
        <bundle start-level="30">mvn:org.apache.aries.application/org.apache.aries.application.management/1.0.0</bundle>
        <bundle start-level="30">mvn:org.apache.aries.application/org.apache.aries.application.utils/1.0.0</bundle>
        <bundle start-level="30">mvn:org.apache.aries.application/org.apache.aries.application.modeller/1.0.0</bundle>
        <bundle start-level="30">mvn:org.apache.aries.application/org.apache.aries.application.default.local.platform/1.0.0</bundle>
        <bundle start-level="30">mvn:org.apache.aries.application/org.apache.aries.application.resolver.noop/1.0.0</bundle>
        <bundle start-level="30">mvn:org.apache.aries.application/org.apache.aries.application.deployment.management/1.0.0</bundle>
        <!-- without isolation -->
        <bundle start-level="30">mvn:org.apache.aries.application/org.apache.aries.application.runtime/1.0.0</bundle>
    </feature>

</features>
