<?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="openejb-features">
  <repository>mvn:org.apache.openejb/javaee-api/6.0-4/xml/features</repository>
  <repository>mvn:org.apache.cxf.karaf/apache-cxf/2.6.3/xml/features</repository>

  <feature name="org.apache.commons">
    <bundle>mvn:commons-cli/commons-cli/1.2</bundle>
    <bundle>wrap:mvn:commons-logging/commons-logging/1.1.1</bundle>
    <bundle>wrap:mvn:commons-logging/commons-logging-api/1.1</bundle>
    <bundle>mvn:commons-pool/commons-pool/1.5.7</bundle>
    <bundle>mvn:commons-dbcp/commons-dbcp/1.4</bundle>
    <bundle>mvn:commons-collections/commons-collections/3.2.1</bundle>
    <bundle>mvn:commons-codec/commons-codec/1.4</bundle>
    <bundle>mvn:commons-fileupload/commons-fileupload/1.2.2</bundle>
    <bundle>mvn:commons-discovery/commons-discovery/0.5</bundle>
    <bundle>mvn:org.apache.commons/commons-lang3/3.1</bundle>
    <bundle>mvn:commons-lang/commons-lang/2.6</bundle>
    <bundle>mvn:commons-io/commons-io/1.4</bundle>
  </feature>

  <feature name="xbean" version="3.12">
    <bundle>mvn:org.apache.xbean/xbean-asm-shaded/3.12</bundle>
    <bundle>mvn:org.apache.xbean/xbean-finder-shaded/3.12</bundle>
    <bundle>mvn:org.apache.xbean/xbean-naming/3.12</bundle>
    <bundle>mvn:org.apache.xbean/xbean-reflect/3.12</bundle>
    <bundle>mvn:org.apache.xbean/xbean-bundleutils/3.12</bundle>
  </feature>

  <feature name="org.apache.openwebbeans" version="1.1.7">
    <bundle>wrap:mvn:net.sf.scannotation/scannotation/1.0.2</bundle>
    <bundle>mvn:org.apache.openwebbeans/openwebbeans-spi/1.1.7</bundle>
    <bundle>mvn:org.apache.openwebbeans/openwebbeans-impl/1.1.7</bundle>
    <bundle>mvn:org.apache.openwebbeans/openwebbeans-ee/1.1.7</bundle>
    <bundle>mvn:org.apache.openwebbeans/openwebbeans-ee-common/1.1.7</bundle>
    <bundle>mvn:org.apache.openwebbeans/openwebbeans-ejb/1.1.7</bundle>
    <bundle>mvn:org.apache.openwebbeans/openwebbeans-web/1.1.7</bundle>
  </feature>

  <feature name="geronimo-osgi" version="1.1">
    <bundle>mvn:org.apache.geronimo.specs/geronimo-osgi-registry/1.1</bundle>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-osgi-locator/1.1</bundle>
  </feature>

  <feature name="org.apache.activemq" version="5.7.0">
    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jasypt/1.6_1</bundle>
    <bundle>mvn:org.apache.activemq/activemq-core/5.7.0</bundle>
    <bundle>mvn:org.apache.activemq/kahadb/5.7.0</bundle>
    <bundle>mvn:org.apache.activemq/activemq-ra/5.7.0</bundle>
  </feature>

  <feature name="openjpa" version="2.2.0">
    <bundle>wrap:mvn:net.sourceforge.serp/serp/1.13.1</bundle>
    <bundle>mvn:org.apache.openjpa/openjpa/2.2.0</bundle>
  </feature>

  <feature name="openejb-core" version="4.5.1">
    <feature version="6.0-4">javaee-api</feature>

    <!-- that shoudn't be necessary as we already have a stax bundle in javaee-api,
        but unfortunately, it does not export javax.xml.namespace -->
    <bundle>mvn:org.apache.geronimo.specs/geronimo-stax-api_1.0_spec/1.0.1</bundle>

    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-beanutils/1.8.2_2</bundle>
    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.quartz/1.8.3_2</bundle>
    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.javassist/3.12.1.GA_2</bundle>
    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.wsdl4j/1.6.2_5</bundle>

    <bundle>mvn:org.apache.geronimo.components/geronimo-connector/3.1.1</bundle>

    <!--
      TODO: when aries will be updated and export all geronimo packages (log) simply comment it
      since we'll use aries tx mgr (same as G one but Karaf friendly)
    -->
    <bundle>mvn:org.apache.geronimo.components/geronimo-transaction/3.1.1</bundle>

    <bundle>mvn:org.apache.geronimo.specs/geronimo-javamail_1.4_spec/1.7.1</bundle>

    <bundle>mvn:org.apache.geronimo.bundles/jaxb-impl/2.2.3-1_1</bundle>

    <feature>org.apache.commons</feature>
    <feature version="3.12">xbean</feature>
    <feature version="1.1">geronimo-osgi</feature>
    <feature version="1.1.7">org.apache.openwebbeans</feature>
    <feature version="2.2.0">openjpa</feature>

    <!-- the activemq feature from activemq-karaf seems broken. Let's use our in the mid time -->
    <!--<feature version="5.7.0">activemq</feature>-->
    <feature version="5.7.0">org.apache.activemq</feature>

    <bundle>mvn:org.apache.commons/commons-lang3/3.1</bundle>
    <bundle>mvn:org.apache.bval/org.apache.bval.bundle/0.5</bundle>
    <bundle>mvn:org.hsqldb/hsqldb/2.2.8</bundle>

    <bundle>mvn:org.apache.openejb/mbean-annotation-api/4.5.1</bundle>
    <bundle>mvn:org.apache.openejb/openejb-api/4.5.1</bundle>
    <bundle>mvn:org.apache.openejb/openejb-javaagent/4.5.1</bundle>
    <bundle>mvn:org.apache.openejb/openejb-jee/4.5.1</bundle>
    <bundle>mvn:org.apache.openejb/openejb-loader/4.5.1</bundle>
    <bundle>mvn:org.apache.openejb/openejb-core-osgi/4.5.1</bundle>
    <bundle>mvn:org.apache.openejb/openejb-karaf-commands/4.5.1</bundle>
  </feature>


  <feature name="openejb-server" version="4.5.1">
    <feature version="4.5.1">openejb-core</feature>
    <bundle>mvn:org.apache.openejb/openejb-ejbd/4.5.1</bundle>
    <bundle>mvn:org.apache.openejb/openejb-server/4.5.1</bundle>
    <bundle>mvn:org.apache.openejb/openejb-client/4.5.1</bundle>
    <bundle>mvn:org.apache.openejb/openejb-core-osgi/4.5.1</bundle> <!-- after openejb-client -->
  </feature>


  <!--
    next features are work in progress
  -->

  <feature name="openejb-cxf" version="4.5.1">
    <feature>cxf-core</feature>
    <bundle>mvn:org.apache.openejb/openejb-http/4.5.1</bundle>
    <bundle>mvn:org.apache.openejb/openejb-cxf-transport/4.5.1</bundle>
  </feature>

  <feature name="openejb-rest" version="4.5.1">
    <feature>openejb-cxf</feature>
    <feature>cxf-jaxrs</feature>
    <bundle>mvn:org.apache.openejb/openejb-rest/4.5.1</bundle>
    <bundle>mvn:org.apache.openejb/openejb-cxf-rs/4.5.1</bundle>
  </feature>

  <feature name="openejb-soap" version="4.5.1">
    <feature>openejb-cxf</feature>
    <feature>cxf-jaxws</feature>
    <bundle>mvn:org.apache.openejb/openejb-webservices/4.5.1</bundle>
    <bundle>mvn:org.apache.openejb/openejb-cxf/4.5.1</bundle>
  </feature>
</features>
