<?xml version='1.0' encoding='UTF-8'?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" name="hawtio-2.0-M3">

  <feature name="hawtio-core" version="2.0-M3" resolver="(obr)">
    <details>Installs the core hawtio war file with minimal extensions</details>
    <feature>war</feature>
    <bundle>mvn:io.hawt/hawtio-json-schema-mbean/2.0-M3</bundle>
    <bundle>mvn:io.hawt/hawtio-war/2.0-M3/war</bundle>

    <config name="jmx.acl.hawtio.plugin">
      * = *
    </config>
  </feature>

  <feature name="hawtio-rbac" version="2.0-M3" resolver="(obr)">
    <details>Installs the hawtio RBAC enabler bundle(s)</details>
    <bundle>mvn:io.hawt/hawtio-osgi-jmx/2.0-M3</bundle>
  </feature>

  <feature name="hawtio" version="2.0-M3" resolver="(obr)">
    <details>Installs the main hawtio web console</details>
    <feature>hawtio-core</feature>
    <feature>hawtio-rbac</feature>
    <!--
    <feature>hawtio-log</feature>
    <feature>hawtio-karaf-terminal</feature>
    <feature>hawtio-maven-indexer</feature>
    -->
  </feature>

  <feature name="hawtio-offline" version="2.0-M3" resolver="(obr)">
    <details>Installs hawtio in offline mode (without Maven service which requires internet connection)</details>
    <feature>hawtio-core</feature>
    <feature>hawtio-log</feature>
    <feature>hawtio-karaf-terminal</feature>
  </feature>

  <feature name="hawtio-maven-indexer" version="2.0-M3" resolver="(obr)">
    <details>Installs the hawtio Maven indexer service as a separate bundle (requires internet connection)</details>
    <bundle>mvn:io.hawt/hawtio-maven-indexer/2.0-M3</bundle>
  </feature>

  <feature name="hawtio-karaf-git" version="2.0-M3" resolver="(obr)">
    <details>Installs the hawtio git so that the contents of the 'etc' directory can be edited.</details>

    <config name="hawtio-git">
      hawtio.config.dir=./etc
    </config>

    <bundle>mvn:io.hawt/hawtio-karaf-git/2.0-M3</bundle>
  </feature>
  
  <feature name="hawtio-git" version="2.0-M3" resolver="(obr)">
    <details>Installs the hawtio git service as a separate bundle</details>

    <config name="hawtio-git">
      hawtio.config.dir=./git
      hawtio.config.repo=https://github.com/hawtio/hawtio-config.git
      hawtio.config.pullOnStartup=true
      hawtio.config.cloneOnStartup=true
    </config>

    <bundle>mvn:io.hawt/hawtio-git/2.0-M3</bundle>
  </feature>

  <feature name="hawtio-dev-mode" version="2.0-M3" resolver="(obr)">
    <details>Adds the hawtio plugin registry and configures the /hawtio-dev context to be served out from the hawtio-web target directory allowing easy development of hawtio while it's running in a real osgi container.  Install jolokia if it's not installed.  Also add org.jolokia.agentContext=/hawtio/jolokia to etc/system.properties so jolokia is installed at the right context</details>

    <config name="hawtiodev-hawtioweb">
      context=/hawtio-dev/*
      content=/mnt/hudson_workspace/workspace/hawtio-release-v2/hawtio-v2/target/checkout/platforms/karaf/../hawtio-web/target/hawtio-web-2.0-M3
    </config>

    <feature>war</feature>
    <bundle>mvn:io.hawt/hawtio-osgi-devmode/2.0-M3</bundle>
  </feature>

  <feature name="hawtio-simple-example" version="2.0-M3" resolver="(obr)">
    <details>A simple example plugin for hawtio</details>
    <feature>war</feature>
    <bundle>mvn:io.hawt/simple-plugin/2.0-M3/war</bundle>
  </feature>

  <feature name="hawtio-irc-example" version="2.0-M3" resolver="(obr)">
    <details>An example IRC client plugin for hawtio</details>
    <feature>war</feature>
    <bundle>mvn:io.hawt/irc-client-plugin/2.0-M3/war</bundle>
  </feature>

  <feature name="hawtio-social-example" version="2.0-M3" resolver="(obr)">
    <details>hawtio social twitter plugin example</details>
    <feature>war</feature>
    <bundle>mvn:io.hawt/social-plugin/2.0-M3/war</bundle>
  </feature>

  <!--
  <feature name="hawtio-karaf-terminal" version="2.0-M3" resolver="(obr)">
    <details>A terminal plugin for hawtio when installed in Karaf</details>
    <bundle dependency="true">mvn:jline/jline/${jline.version}</bundle>
    <bundle>mvn:io.hawt/hawtio-karaf-terminal/2.0-M3/war</bundle>

    <config name="jmx.acl.hawtio.plugin">
      * = *
    </config>
  </feature>
  -->

</features>
