<!--

    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-${activemq-version}">
    <repository>mvn:org.apache.karaf/apache-karaf/${karaf-version}/xml/features</repository>
        
    <feature name="activemq" version="${activemq-version}">
        <bundle>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
        <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle> 
        <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle> 
        <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle> 
        <bundle>mvn:commons-pool/commons-pool/${commons-pool-version}</bundle>
        <bundle>mvn:commons-collections/commons-collections/${commons-collections-version}</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_3</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-codec/1.3_3</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.oro/2.0.8_3</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity/1.6.2_3</bundle>
        <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jasypt/1.6_1</bundle>
        <bundle>mvn:org.apache.activemq/activemq-core/${activemq-version}</bundle> 
        <bundle>mvn:org.apache.activemq/kahadb/${activemq-version}</bundle> 
        <bundle>mvn:org.apache.activemq/activemq-console/${activemq-version}</bundle>
        <bundle>mvn:org.apache.activemq/activemq-ra/${activemq-version}</bundle> 
        <bundle>mvn:org.apache.activemq/activemq-pool/${activemq-version}</bundle>
        <bundle>mvn:org.apache.activemq/activemq-karaf/${activemq-version}</bundle> 
        <bundle>mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/${aries-version}</bundle>
    </feature>

    <feature name="activemq-spring" version="${activemq-version}">
        <feature version="1.2.0">spring-dm</feature> 
        <feature version="${activemq-version}">activemq</feature> 
        <bundle>mvn:org.apache.activemq/activemq-spring/${activemq-version}</bundle> 
        <bundle>mvn:org.apache.xbean/xbean-spring/${xbean-version}</bundle> 
    </feature>

    <feature name="activemq-blueprint" version="${activemq-version}">
        <feature version="${activemq-version}">activemq</feature> 
        <bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.scripting-api-1.0/1.5.0</bundle>
        <bundle>mvn:org.apache.commons/commons-jexl/2.0.1</bundle>
        <bundle>mvn:org.apache.xbean/xbean-blueprint/${xbean-version}</bundle> 
        <bundle>mvn:org.apache.activemq/activemq-blueprint/${activemq-version}</bundle> 
    </feature>
    
    <!-- do "features:install war" before installing this one  -->
    <feature name="activemq-web-console" version="${activemq-version}">
        <bundle>war:mvn:org.apache.activemq/activemq-web-console/${activemq-version}/war?Webapp-Context=activemq-web-console</bundle>
    </feature>
</features>
