<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features name="minion-core-features" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">

    <!-- Apache ActiveMQ features -->
    <repository>mvn:org.apache.activemq/activemq-karaf/5.14.5/xml/features</repository>

    <!-- Apache Camel features -->
    <repository>mvn:org.apache.camel.karaf/apache-camel/2.19.1/xml/features</repository>

    <feature name="minion-core" description="Minion :: Core" version="25.0.0-SNAPSHOT">
        <feature>camel-core</feature>
        <feature>camel-blueprint</feature>
        <feature>camel-jaxb</feature>
        <feature>opennms-health</feature>

        <!-- Used for the REST client -->
        <bundle>mvn:org.apache.httpcomponents/httpcore-osgi/4.4.4</bundle>
        <bundle>mvn:org.apache.httpcomponents/httpclient-osgi/4.5.2</bundle>
        <bundle>mvn:com.google.code.gson/gson/2.8.5</bundle>

        <bundle>mvn:org.opennms.core.health/org.opennms.core.health.api/25.0.0-SNAPSHOT</bundle>
        <bundle>mvn:org.opennms.features.distributed/core-api/25.0.0-SNAPSHOT</bundle>
        <bundle>mvn:org.opennms.features.distributed/core-impl/25.0.0-SNAPSHOT</bundle>
        <bundle>mvn:org.opennms.features.minion/core-impl/25.0.0-SNAPSHOT</bundle>
    </feature>

    <feature name="geronimo-jms-api" description="Apache Geronimo :: JMS :: API" version="1.1.1">
        <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>
    </feature>

    <feature name="minion-jms" description="Minion :: Core :: JMS" version="25.0.0-SNAPSHOT">
        <feature>minion-core</feature>
        <feature>geronimo-jms-api</feature>

        <!-- Needed by activemq-camel -->
        <bundle>mvn:javax.annotation/javax.annotation-api/1.2</bundle>
        <feature>activemq-camel</feature>

        <!-- This is also defined in "sentinel-jms" -->
        <bundle>mvn:org.opennms.core.health/org.opennms.core.health.api/25.0.0-SNAPSHOT</bundle>
        <bundle>mvn:org.opennms.features.distributed/jms/25.0.0-SNAPSHOT</bundle>
    </feature>

    <feature name="minion-core-shell" description="Minion :: Core :: Shell" version="25.0.0-SNAPSHOT">
        <feature>minion-core</feature>
        <feature>geronimo-jms-api</feature>
        <bundle>mvn:org.opennms.features.distributed/shell/25.0.0-SNAPSHOT</bundle>
    </feature>
</features>
