<?xml version="1.0" encoding="UTF-8"?>
<features name="karaf-features-core-droolsjbpm-${project.version}"
          xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.0.0 http://karaf.apache.org/xmlns/features/v1.0.0">

  <feature name="drools-module" version="${project.version}" description="Drools Core">
    <feature version="${project.version}">drools-common</feature>
    <feature version="${project.version}">kie</feature>
    <bundle>mvn:com.github.javaparser/javaparser-core/${karaf.version.com.github.javaparser}</bundle>
    <bundle>mvn:org.drools/drools-constraint-parser/${version.org.drools}</bundle>
    <bundle>mvn:org.drools/drools-canonical-model/${version.org.drools}</bundle>
    <bundle>mvn:org.drools/drools-model-compiler/${version.org.drools}</bundle>
    <bundle>mvn:org.drools/drools-core/${version.org.drools}</bundle>
    <bundle>mvn:org.drools/drools-compiler/${version.org.drools}</bundle>
    <bundle>mvn:org.drools/drools-cdi/${version.org.drools}</bundle>
    <bundle>mvn:org.kie/kie-osgi-integration/${version.org.drools}</bundle>
  </feature>

  <feature name="drools-templates" version="${project.version}" description="Drools Templates">
    <feature version="${project.version}">drools-module</feature>
    <bundle>mvn:org.drools/drools-templates/${version.org.drools}</bundle>
  </feature>

  <feature name="drools-jpa" version="${project.version}" description="Drools JPA">
    <feature version="${project.version}">drools-module</feature>
    <feature version="[4,5)">spring-orm</feature>
    <feature version="[2,3)">jpa</feature>
    <bundle>mvn:org.drools/drools-persistence-api/${version.org.drools}</bundle>
    <bundle>mvn:org.drools/drools-persistence-jpa/${version.org.drools}</bundle>
  </feature>

  <feature name="kie" version="${project.version}" description="KIE API" start-level="70">
    <feature version="${project.version}">drools-common</feature>
    <bundle>mvn:org.kie.soup/kie-soup-commons/${version.org.kie}</bundle>
    <bundle>mvn:org.kie.soup/kie-soup-project-datamodel-api/${version.org.kie}</bundle>
    <bundle>mvn:org.kie.soup/kie-soup-project-datamodel-commons/${version.org.kie}</bundle>
    <bundle>mvn:org.kie.soup/kie-soup-maven-support/${version.org.kie}</bundle>
    <bundle>mvn:org.kie/kie-api/${version.org.drools}</bundle>
    <bundle>mvn:org.kie/kie-internal/${version.org.drools}</bundle>
    <bundle>mvn:org.drools/drools-core/${version.org.drools}</bundle>
    <bundle>mvn:org.drools/drools-compiler/${version.org.drools}</bundle>
  </feature>

  <feature name="kie-ci" version="${project.version}" description="KIE CI">
    <feature version="${project.version}">kie</feature>
    <bundle>mvn:org.kie/kie-ci-osgi/${version.org.drools}</bundle>
  </feature>

  <feature name="kie-spring" version="${project.version}" description="KIE Spring">
    <feature version="${project.version}">kie</feature>
    <feature version="${project.version}">drools-jpa</feature>
    <feature version="${project.version}">jbpm</feature>
    <feature version="${project.version}">jbpm-human-task</feature>
    <feature version="[4,5)">spring</feature>
    <feature version="[4,5)">spring-jdbc</feature>
    <feature version="[4,5)">spring-orm</feature>
    <bundle>mvn:org.kie/kie-spring/${version.org.drools}</bundle>
  </feature>

  <feature name="kie-aries-blueprint" version="${project.version}" description="KIE Aries Blueprint">
    <feature version="${project.version}">kie</feature>
    <feature version="${project.version}">drools-jpa</feature>
    <feature version="${project.version}">jbpm</feature>
    <feature version="${project.version}">jbpm-human-task</feature>
    <bundle>mvn:org.kie/kie-aries-blueprint/${version.org.drools}</bundle>
  </feature>

  <feature name="jbpm-workitems" version="${project.version}" description="jBPM Work Items">
    <feature version="${project.version}">jbpm</feature>
    <bundle>wrap:mvn:org.jbpm/jbpm-workitems-core/${version.org.jbpm}</bundle>
  </feature>

  <feature name="jbpm-executor" version="${project.version}" description="jBPM Executor">
    <feature version="${project.version}">jbpm-workitems</feature>
    <bundle>wrap:mvn:org.jbpm/jbpm-executor/${version.org.jbpm}$DynamicImport-Package=org.hibernate.*,javassist.*</bundle>
  </feature>

  <feature name="jbpm-spring-persistent" version="${project.version}" description="jBPM Spring Persistence support">
    <feature version="${project.version}">jbpm</feature>
    <feature version="${project.version}">kie-spring</feature>
    <feature>droolsjbpm-hibernate</feature>
    <feature version="${h2.version}">h2</feature>
  </feature>

  <feature name="kie-camel" version="${project.version}">
    <feature version="${project.version}">kie-spring</feature>
    <feature version="${project.version}">jbpm</feature>
    <feature version="${project.version}">kie-server-client</feature>
    <feature>camel-core</feature>
    <feature>camel-spring</feature>
    <feature>camel-cxf</feature>
    <feature version="[3.2,3.3)">cxf-specs</feature>
    <feature version="[3.2,3.3)">cxf-core</feature>
    <feature version="[3.2,3.3)">cxf-jaxrs</feature>
    <bundle>mvn:org.kie/kie-camel/${project.version}</bundle>
  </feature>

  <feature name="jbpm-workitems-camel" version="${project.version}">
    <feature version="${project.version}">jbpm</feature>
    <feature version="${project.version}">jbpm-workitems</feature>
    <feature>camel-core</feature>
    <bundle>mvn:org.jbpm.contrib/camel-workitem/${project.version}</bundle>
  </feature>

</features>
