<?xml version='1.0' encoding='UTF-8'?>
<features name='hawtio-1.1'>

  <feature name="hawtio" version="1.1" resolver="(obr)">
    <details>Installs the main hawtio war file, an MBean helper for OSGi and an MBean helper to get JSON Schema out of Java objects</details>
    <feature>war</feature>
    <bundle>mvn:io.hawt/hawtio-osgi-jmx/1.1</bundle>
    <bundle>mvn:io.hawt/hawtio-json-schema-mbean/1.1</bundle>
    <bundle>mvn:io.hawt/hawtio-web/1.1/war</bundle>
  </feature>

  <feature name="hawtio-maven-indexer" version="1.1" resolver="(obr)">
    <details>Installs the hawtio maven indexer service as a separate bundle</details>
    <bundle>fab:mvn:io.hawt/hawtio-maven-indexer/1.1</bundle>
  </feature>

  <feature name="hawtio-git" version="1.1" resolver="(obr)">
    <details>Installs the hawtio git service as a separate bundle</details>

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

    <bundle>fab:mvn:com.jcraft/jsch/0.1.44-1</bundle>
    <bundle>fab:mvn:org.gitective/gitective-core/0.9.9</bundle>
    <bundle>mvn:org.eclipse.jgit/org.eclipse.jgit/2.2.0.201212191850-r</bundle>
    <bundle>mvn:org.eclipse.jgit/org.eclipse.jgit.http.server/2.2.0.201212191850-r</bundle>
    <bundle>fab:mvn:io.hawt/hawtio-git/1.1</bundle>
  </feature>

  <feature name="hawtio-dev-mode" version="1.1" resolver="(obr)">
    <details>Adds the hawtio plugin registry and configures the /hawtio 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=/workspace/java/hawtio/target/checkout/hawtio-karaf/../hawtio-web/target/hawtio-web-1.1
    </config>

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

  </feature>

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

</features>
