<?xml version="1.0" encoding="UTF-8"?>
<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-human-task</artifactId>
  <name>jBPM :: Human Task</name>
  <packaging>pom</packaging>
  
  <modules>
    <module>jbpm-human-task-core</module>
    <module>jbpm-human-task-workitems</module>
    <module>jbpm-human-task-audit</module>
    <module>jbpm-human-task-jpa</module>
  </modules>

  <dependencies>
    <dependency>
      <groupId>org.javassist</groupId>
      <artifactId>javassist</artifactId>
    </dependency>
    <!-- test --> 
    <dependency>
      <groupId>org.easymock</groupId>
      <artifactId>easymock</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.codehaus.btm</groupId>
      <artifactId>btm</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

    <maven.btm.maxPoolSize>16</maven.btm.maxPoolSize>
     <!-- 
    <maven.tx.type>RESOURCE_LOCAL</maven.tx.type>
    <maven.data.source/>
    -->
    <maven.tx.type>JTA</maven.tx.type>
    <maven.data.source>&lt;jta-data-source&gt;jdbc/jbpm-ds&lt;/jta-data-source&gt;</maven.data.source>
    
    
    <!-- H2
     -->
    <maven.hibernate.dialect>org.hibernate.dialect.H2Dialect</maven.hibernate.dialect>
    <maven.datasource.classname>bitronix.tm.resource.jdbc.lrc.LrcXADataSource</maven.datasource.classname>
    <maven.jdbc.driver.class>org.h2.Driver</maven.jdbc.driver.class>
    <maven.jdbc.db.name/>
    <maven.jdbc.db.port/>
    <maven.jdbc.db.server/> 
    <!--     
    <maven.jdbc.username>sa</maven.jdbc.username>
    <maven.jdbc.password>sasa</maven.jdbc.password>
    <maven.jdbc.url>jdbc:h2:mem:test;MVCC=true</maven.jdbc.url>
    <maven.jdbc.schema/>
     -->
    <maven.jdbc.url>jdbc:h2:mem:jbpm-db;MVCC=true</maven.jdbc.url>
  </properties>

  <build>
    <plugins>
      <plugin>
        <!-- ensure that db files are deleted before _any_ run 
        otherwise we get tests failing because of leftover db's/tx logs -->
        <artifactId>maven-clean-plugin</artifactId>
        <configuration>
          <filesets>
            <fileset>
              <directory>${basedir}</directory>
              <includes>
                <include>btm*</include>
                <include>*.db</include>
              </includes>
            </fileset>
          </filesets>
        </configuration>
      </plugin>
    </plugins>
  </build> 
</project>
