<?xml version="1.0" encoding="UTF-8"?>
<features name="karaf-features-droolsjbpm-7.4.1.Final"
          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">

  <repository>mvn:org.kie/kie-karaf-features/7.4.1.Final/xml/features-core</repository>

  <feature name="drools-common" version="7.4.1.Final" description="Drools Commons">
    <bundle>mvn:com.google.protobuf/protobuf-java/2.6.0</bundle>
    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/3.5_1</bundle>
    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8/1.4.10_1</bundle>
    <bundle start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/2.2.0</bundle>
    <bundle start-level='10'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc/2.2.11_1</bundle>
    <bundle start-level='10'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.11_1</bundle>
    <bundle>mvn:org.mvel/mvel2/2.3.2.Final</bundle>
    <bundle>wrap:mvn:org.eclipse.jdt.core.compiler/ecj/4.4.2$Bundle-SymbolicName=Eclipse-JDT-Compiler&amp;Bundle-Version=4.4.2</bundle>
    <bundle>wrap:mvn:org.codehaus.janino/janino/2.5.16$Bundle-SymbolicName=Codehaus-Janino&amp;Bundle-Version=2.5.16</bundle>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-atinject_1.0_spec/1.0</bundle>
    <bundle>wrap:mvn:javax.enterprise/cdi-api/1.2</bundle>
    <bundle>mvn:org.jboss.spec.javax.el/jboss-el-api_3.0_spec/1.0.8.Final</bundle>
    <bundle>mvn:org.jboss.spec.javax.interceptor/jboss-interceptors-api_1.2_spec/1.0.0.Final</bundle>
    <bundle>mvn:commons-codec/commons-codec/1.10</bundle>
  </feature>

  <feature name="drools-decisiontable" description="Drools Decision Tables" version="7.4.1.Final">
    <feature version="7.4.1.Final">drools-module</feature>
    <feature version="7.4.1.Final">drools-templates</feature>
    <bundle>mvn:commons-codec/commons-codec/1.10</bundle>
    <bundle>mvn:org.apache.commons/commons-collections4/4.1</bundle>
    <bundle>mvn:org.drools/drools-decisiontables/7.4.1.Final</bundle>
    <bundle>mvn:org.apache.commons/commons-collections4/4.1</bundle>
    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi/3.15_1</bundle>
    <bundle>mvn:org.apache.santuario/xmlsec/2.0.6</bundle>
    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5</bundle>
  </feature>

  <feature name="drools-wb-guided-decisiontables" description="Drools Workbench Guided Decision Tables" version="7.4.1.Final">
     <feature version="7.4.1.Final">drools-module</feature>
     <bundle>mvn:org.drools/drools-workbench-models-datamodel-api/7.4.1.Final</bundle>
     <bundle>mvn:org.drools/drools-workbench-models-commons/7.4.1.Final</bundle>
     <bundle>mvn:org.apache.commons/commons-lang3/3.4</bundle>
     <bundle>mvn:org.drools/drools-workbench-models-guided-dtable/7.4.1.Final</bundle>
   </feature>
   
   <feature name="kie-dmn" description="Kie DMN" version="7.4.1.Final">
     <feature version="7.4.1.Final">drools-module</feature>
     <bundle>mvn:org.antlr/antlr4-runtime/4.5.3</bundle>
     <bundle>mvn:org.kie/kie-dmn-model/7.4.1.Final</bundle>
     <bundle>mvn:org.kie/kie-dmn-api/7.4.1.Final</bundle>
     <bundle>mvn:org.kie/kie-dmn-backend/7.4.1.Final</bundle>
     <bundle>mvn:org.kie/kie-dmn-feel/7.4.1.Final</bundle>
     <bundle>mvn:org.kie/kie-dmn-core/7.4.1.Final</bundle>
   </feature>

  <feature name="jbpm-commons" version="7.4.1.Final" description="jBPM Commons">
    <!-- This feature is Fuse version specific, so it is defined differently in the features.xml and features-fuse-6_3.xml files -->
    <feature version="7.4.1.Final">servlet-api-kie</feature>
    <bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.scripting-api-1.0/2.4.0</bundle>
    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.quartz/1.8.5_2</bundle>
    <bundle>mvn:org.jboss.spec.javax.security.jacc/jboss-jacc-api_1.5_spec/1.0.0.Final</bundle>
    <bundle>mvn:joda-time/joda-time/2.7</bundle>
    <bundle>mvn:org.jboss.spec.javax.interceptor/jboss-interceptors-api_1.2_spec/1.0.0.Final</bundle>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-jpa_2.1_spec/1.0-alpha-1</bundle>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
  </feature>

  <feature name="jbpm-human-task" version="7.4.1.Final" description="jBPM Human Task">
    <feature version="7.4.1.Final">drools-module</feature>
    <feature version="7.4.1.Final">drools-jpa</feature>
    <feature version="7.4.1.Final">jbpm-commons</feature>
    <bundle>mvn:com.google.guava/guava/20.0</bundle>
    <bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.6.2</bundle>
    <bundle>mvn:javax.mail/mail/1.4.5</bundle>
    <bundle>mvn:org.jbpm/jbpm-flow/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-query-jpa/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-audit/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-human-task-core/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-human-task-workitems/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-human-task-jpa/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-human-task-audit/7.4.1.Final</bundle>
  </feature>

  <feature name="jbpm" version="7.4.1.Final" description="jBPM Engine">
    <feature version="7.4.1.Final">drools-module</feature>
    <feature version="7.4.1.Final">drools-jpa</feature>
    <feature version="7.4.1.Final">jbpm-commons</feature>
    <feature version="7.4.1.Final">jbpm-human-task</feature>
    <bundle>mvn:org.jbpm/jbpm-flow-builder/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-flow/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-bpmn2/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-audit/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-query-jpa/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-persistence-api/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-persistence-jpa/7.4.1.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-runtime-manager/7.4.1.Final</bundle>
    <bundle>mvn:org.apache.commons/commons-lang3/3.4</bundle>
  </feature>

  <feature name="optaplanner-engine" version="7.4.1.Final" description="OptaPlanner Engine">
    <feature version="7.4.1.Final">drools-module</feature>
    <bundle>mvn:org.optaplanner/optaplanner-core/7.4.1.Final</bundle>
    <bundle>mvn:org.optaplanner/optaplanner-persistence-common/7.4.1.Final</bundle>
    <bundle>mvn:org.optaplanner/optaplanner-persistence-xstream/7.4.1.Final</bundle>
    <bundle>mvn:org.optaplanner/optaplanner-persistence-jaxb/7.4.1.Final</bundle>
    <bundle>mvn:org.apache.commons/commons-lang3/3.4</bundle>
    <bundle>mvn:org.apache.commons/commons-math3/3.4.1</bundle>
    <bundle>mvn:commons-io/commons-io/2.5</bundle>
    <bundle>mvn:com.google.guava/guava/20.0</bundle>
    <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.reflections/0.9.10_2</bundle>
  </feature>

  <feature name="droolsjbpm-hibernate" version="5.1.4.Final" description="Hibernate 5.x JPA persistence engine support">
    <details>Enable Hibernate 5.x as persistence engine.</details>
    <feature>transaction</feature>
    <feature>jpa</feature>
    <feature version="7.4.1.Final">servlet-api-kie</feature>
    <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/2.7.7_5</bundle>
    <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/1.8.2_2</bundle>
    <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6.1_5</bundle>
    <bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.serp/1.14.1_1</bundle>
    <bundle dependency="true">mvn:com.fasterxml/classmate/1.3.1</bundle>
    <bundle dependency="true">mvn:org.javassist/javassist/3.20.0-GA</bundle>
    <bundle dependency="true">mvn:org.jboss.spec.javax.security.jacc/jboss-jacc-api_1.5_spec/1.0.0.Final</bundle>
    <bundle dependency="true">wrap:mvn:org.jboss/jandex/1.1.0.Final</bundle>
    <bundle dependency="true">mvn:javax.validation/validation-api/1.1.0.Final</bundle>
    <bundle dependency="true">mvn:org.jboss.logging/jboss-logging/3.3.1.Final</bundle>
    <bundle dependency="true">mvn:org.hibernate.common/hibernate-commons-annotations/5.0.1.Final</bundle>
    <bundle start-level="100">wrap:mvn:org.hibernate/hibernate-core/5.1.4.Final$overwrite=merge&amp;Import-Package=org.jbpm.services.task*,*</bundle>
    <bundle start-level="100">wrap:mvn:org.hibernate/hibernate-entitymanager/5.1.4.Final$overwrite=merge&amp;DynamicImport-Package=*</bundle>
    <bundle start-level="100">mvn:org.hibernate/hibernate-osgi/5.1.4.Final</bundle>
    <bundle start-level="100">mvn:org.apache.logging.log4j/log4j-api/2.5</bundle>
  </feature>

  <feature name="hibernate-validator" version="5.3.4.Final" description="Hibernate Validator">
    <bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr303-api-1.1.0/2.4.0</bundle>
    <bundle>mvn:org.jboss.logging/jboss-logging/3.3.1.Final</bundle>
    <bundle>mvn:org.hibernate/hibernate-validator/5.3.4.Final</bundle>
    <bundle>mvn:org.apache.logging.log4j/log4j-api/2.5</bundle>
    <bundle>mvn:com.fasterxml/classmate/1.3.1</bundle>
  </feature>

  <feature name="h2" version="1.4.178" description="H2 database">
    <bundle>mvn:com.h2database/h2/1.4.178</bundle>
    <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
    <bundle start-level="100">mvn:commons-dbcp/commons-dbcp/1.4</bundle>
    <bundle start-level="100">mvn:commons-pool/commons-pool/1.6</bundle>
  </feature>

  <feature name="kie-server-client" version="7.4.1.Final" description="KIE Server Client">
    <feature version="7.4.1.Final">drools-module</feature>
    <feature version="7.4.1.Final">optaplanner-engine</feature>
    <bundle>mvn:org.kie.server/kie-server-api/7.4.1.Final</bundle>
    <bundle>mvn:org.kie.server/kie-server-common/7.4.1.Final</bundle>
    <bundle>mvn:org.kie.server/kie-server-client/7.4.1.Final</bundle>
    <bundle>mvn:org.kie/kie-dmn-model/7.4.1.Final</bundle> <!-- needed as the kie-server contains DMN client, which uses the kie-dmn-api, which needs kie-dmn-model -->
    <bundle>mvn:org.kie/kie-dmn-api/7.4.1.Final</bundle>   <!-- needed as the kie-server contains DMN client, which uses the kie-dmn-api -->
    <bundle>wrap:mvn:org.jboss.spec.javax.ws.rs/jboss-jaxrs-api_2.0_spec/1.0.0.Final</bundle>
    <bundle>mvn:org.apache.commons/commons-lang3/3.4</bundle>
    <bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.6.2</bundle>
    <bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.6.2</bundle>
    <bundle>mvn:com.fasterxml.jackson.core/jackson-databind/2.6.2</bundle>
    <bundle>mvn:com.fasterxml.jackson.module/jackson-module-jaxb-annotations/2.6.2</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.servicemix.bundles/org.apache.servicemix.bundles.xpp3/1.1.4c_7</bundle>
  </feature>

  <feature name="servlet-api-kie" version="7.4.1.Final">
    <bundle>mvn:org.apache.geronimo.specs/geronimo-servlet_3.0_spec/1.0</bundle>
  </feature>

</features>
