<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.jbpm</groupId>
    <artifactId>jbpm</artifactId>
    <version>6.2.0.Beta3</version>
  </parent>

  <artifactId>jbpm-runtime-manager</artifactId>
  <packaging>bundle</packaging>

  <name>jBPM :: RuntimeManager</name>
  <description>jBPM RuntimeManager</description>

  <dependencies>
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-flow</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-bpmn2</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-persistence-jpa</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-audit</artifactId>
    </dependency>
    <dependency>
      <groupId>org.drools</groupId>
      <artifactId>drools-persistence-jpa</artifactId>
    </dependency>
    <dependency>
      <groupId>org.kie</groupId>
      <artifactId>kie-ci</artifactId>
      <optional>true</optional>
    </dependency>

    <!-- cdi -->
    <dependency>
      <groupId>org.jboss.spec.javax.el</groupId>
      <artifactId>jboss-el-api_2.2_spec</artifactId>
      <scope>provided</scope>
      <optional>true</optional>
    </dependency>

    <!-- Test -->
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-flow-builder</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.jboss.spec.javax.ejb</groupId>
      <artifactId>jboss-ejb-api_3.1_spec</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-entitymanager</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.h2database</groupId>
      <artifactId>h2</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.codehaus.btm</groupId>
      <artifactId>btm</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-human-task-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-human-task-workitems</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-human-task-audit</artifactId>
    </dependency>
    <dependency>
      <groupId>org.jbpm</groupId>
      <artifactId>jbpm-human-task-jpa</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>javax.enterprise</groupId>
      <artifactId>cdi-api</artifactId>
      <optional>true</optional>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <!-- we need to fork always as we have mixture of both arquillian tests and regular
      and to avoid clashing between them as both need to setup data source and bound it to JNDI -->
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <forkMode>always</forkMode>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>org.jbpm.runtime.manager</Bundle-SymbolicName>
            <Import-Package>
              !org.jbpm.runtime.manager*,
              javassist.util.proxy;resolution:=optional,
              javax.enterprise.context,
              javax.enterprise.context.spi,
              javax.enterprise.inject,
              javax.enterprise.inject.spi,
              javax.enterprise.util,
              javax.inject,
              javax.persistence,
              javax.xml,
              javax.xml.bind,
              javax.xml.bind.annotation,
              javax.xml.validation,
              org.drools.compiler.kie.builder.impl,
              org.drools.compiler.kie.util,
              org.drools.core.command,
              org.drools.core.command.impl,
              org.drools.core.common,
              org.drools.core.impl,
              org.drools.core.marshalling.impl,
              org.drools.core.time,
              org.drools.core.time.impl,
              org.drools.core.util,
              org.drools.persistence,
              org.drools.persistence.jpa,
              org.drools.persistence.jta,
              org.jboss.solder.core;resolution:=optional,
              org.jbpm.marshalling.impl,
              org.jbpm.persistence.timer,
              org.jbpm.process.audit,
              org.jbpm.process.audit.event,
              org.jbpm.process.core.timer,
              org.jbpm.process.core.timer.impl,
              org.jbpm.process.instance.event,
              org.jbpm.process.instance.event.listeners,
              org.jbpm.process.instance.impl,
              org.jbpm.process.instance.timer,
              org.jbpm.services.task,
              org.jbpm.services.task.audit;resolution:=optional,
              org.jbpm.services.task.identity,
              org.jbpm.services.task.lifecycle.listeners,
              org.jbpm.services.task.wih,
              org.hibernate.proxy;resolution:=optional,
              org.kie.api,
              org.kie.api.builder,
              org.kie.api.builder.model,
              org.kie.api.command,
              org.kie.api.event.process,
              org.kie.api.event.rule,
              org.kie.api.io,
              org.kie.api.marshalling,
              org.kie.api.runtime,
              org.kie.api.runtime.conf,
              org.kie.api.runtime.manager,
              org.kie.api.runtime.manager.audit,
              org.kie.api.runtime.process,
              org.kie.api.task,
              org.kie.api.task.model,
              org.kie.internal,
              org.kie.internal.query,
              org.kie.internal.builder,
              org.kie.internal.command,
              org.kie.internal.executor.api,
              org.kie.internal.persistence.jpa,
              org.kie.internal.process,
              org.kie.internal.runtime,
              org.kie.internal.runtime.conf,
              org.kie.internal.runtime.manager,
              org.kie.internal.runtime.manager.cdi.qualifier,
              org.kie.internal.runtime.manager.context,
              org.kie.internal.task.api,
              org.kie.internal.task.api.model,
              org.kie.internal.task.query,
              org.kie.scanner;resolution:=optional,
              org.mvel2,
              org.slf4j,
              org.eclipse.aether.artifact;resolution:=optional,
              org.xml.sax
            </Import-Package>
            <Private-Package></Private-Package>
            <Export-Package>
              org.jbpm.runtime.manager.api*,
              org.jbpm.runtime.manager.impl*
            </Export-Package>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
