<?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="activemq-5.8.0.redhat-60060">

    <!-- Bundles needed if only client will be deployed in the container -->
    <feature name="activemq-client" description="ActiveMQ client libraries" version="5.8.0.redhat-60060" resolver="(obr)" start-level="50">
        <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-jta_1.1_spec/1.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.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
        <bundle dependency="false">mvn:commons-pool/commons-pool/1.6</bundle>
        <bundle dependency="false">mvn:commons-net/commons-net/3.2</bundle>
        <!-- uber osgi bundle means client is not that lean, todo: introduce client osgi bundle -->
        <feature version="[3,4)">spring</feature>
        <bundle dependency="false">mvn:org.apache.xbean/xbean-spring/3.12</bundle>
        <bundle>mvn:org.apache.activemq/activemq-osgi/5.8.0.redhat-60060</bundle>
    </feature>

    <!-- All bundles needed by the broker -->
    <feature name="activemq" description="ActiveMQ broker libraries" version="5.8.0.redhat-60060" resolver="(obr)" start-level="50">
      <feature>jetty</feature>
      <feature version="5.8.0.redhat-60060">activemq-client</feature>
      <bundle>mvn:org.apache.activemq/activemq-karaf/5.8.0.redhat-60060</bundle>
      <bundle dependency="true">mvn:org.apache.xbean/xbean-spring/3.12</bundle>
      <bundle dependency="true">mvn:commons-collections/commons-collections/3.2.1</bundle>
      <bundle dependency='true'>mvn:commons-lang/commons-lang/2.6</bundle>
      <bundle dependency="true">mvn:commons-codec/commons-codec/1.4</bundle>
      <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity/1.7_5</bundle>
      <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jasypt/1.9.0_1</bundle>
      <bundle dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/2.0.0.redhat-60060</bundle>
      <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_5</bundle>
      <bundle dependency="true">mvn:joda-time/joda-time/1.6.2</bundle>
      <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.3_3</bundle>
      <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.snappy-java/1.0.4.1_1</bundle>
      <bundle dependency="true">mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/1.0.1.redhat-60060</bundle>
      <bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-j2ee-connector_1.5_spec/2.0.0</bundle>
      <bundle dependency="true">mvn:org.apache.aries/org.apache.aries.util/1.0.1.redhat-60060</bundle>
      <bundle dependency="true">mvn:org.apache.activemq/activeio-core/3.1.4</bundle>
      <bundle dependency="true">mvn:org.codehaus.jettison/jettison/1.3.3</bundle>
      <bundle dependency="true">mvn:org.codehaus.jackson/jackson-core-asl/1.9.10</bundle>
      <bundle dependency="true">mvn:org.codehaus.jackson/jackson-mapper-asl/1.9.10</bundle>
      <bundle dependency="true">mvn:org.scala-lang/scala-library/2.10.0</bundle>
    </feature>

    <!-- Starts the broker with default configuration and web console -->
    <feature name="activemq-broker" description="Full ActiveMQ broker with default configuration and web console" version="5.8.0.redhat-60060" resolver="(obr)" start-level="50">
        <feature version="5.8.0.redhat-60060">activemq</feature>
        <configfile finalname="/etc/activemq.xml">mvn:org.apache.activemq/activemq-karaf/5.8.0.redhat-60060/xml/activemq</configfile>
        <configfile finalname="/etc/org.apache.activemq.server-default.cfg">mvn:org.apache.activemq/activemq-karaf/5.8.0.redhat-60060/cfg/activemq</configfile>
        <feature version="5.8.0.redhat-60060">activemq-web-console</feature>
    </feature>

    <feature name="activemq-camel" version="5.8.0.redhat-60060" resolver="(obr)" start-level="50">
        <feature version="5.8.0.redhat-60060">activemq-client</feature>
        <feature version="[2.10,3)">camel-jms</feature>
        <feature version="[2.10,3)">camel</feature>
    </feature>

    <feature name="activemq-web-console" version="5.8.0.redhat-60060" resolver="(obr)" start-level="50">
      <feature start-level="10">war</feature>
      <feature start-level="10">eventadmin</feature>
      <configfile finalname="/etc/org.apache.activemq.webconsole.cfg">mvn:org.apache.activemq/activemq-karaf/5.8.0.redhat-60060/cfg/activemq-webconsole</configfile>
      <bundle>mvn:org.apache.activemq/activemq-web-console/5.8.0.redhat-60060/war</bundle>
    </feature>

    <feature name="activemq-blueprint" version="5.8.0.redhat-60060" resolver="(obr)" start-level="50">
      <feature version="5.8.0.redhat-60060">activemq</feature>
      <bundle dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.scripting-api-1.0/1.9.0</bundle>
      <bundle dependency="true">mvn:org.apache.commons/commons-jexl/2.0.1</bundle>
      <bundle dependency="true">mvn:org.apache.xbean/xbean-blueprint/3.12</bundle>
      <bundle>mvn:org.apache.activemq/activemq-blueprint/5.8.0.redhat-60060</bundle>
    </feature>

</features>

