blob: 5b7a4c356a57117c456f5ad43d29a3c2b58d4778 [file] [log] [blame]
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.drools</groupId>
<artifactId>drools-multiproject</artifactId>
<version>5.5.1-SNAPSHOT</version>
</parent>
<artifactId>drools-persistence-jpa</artifactId>
<name>Drools :: Persistence :: JPA</name>
<description>JPA implementation for Drools</description>
<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>false</filtering>
</testResource>
<testResource>
<directory>src/test/filtered-resources</directory>
<filtering>true</filtering>
</testResource>
</testResources>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<manifestLocation>META-INF</manifestLocation>
<instructions>
<_removeheaders>Ignore-Package</_removeheaders>
<Require-Bundle>org.drools.core;bundle-version="${drools.osgi.version}", org.drools.compiler;bundle-version="${drools.osgi.version}"</Require-Bundle>
<Import-Package>!org.drools.*, *</Import-Package>
<Export-Package>org.drools.*</Export-Package>
<DynamicImport-Package>*</DynamicImport-Package>
<!--Bundle-Activator>org.drools.osgi.core.Activator</Bundle-Activator-->
</instructions>
</configuration>
</plugin>
<plugin>
<!-- ensure that db files are deleted before _any_ run
otherwise we get tests failing because of leftover db's -->
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<filesets>
<fileset>
<directory>${basedir}</directory>
<includes>
<include>btm*</include>
<include>JPADroolsFlow.h2.db</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.drools</groupId>
<artifactId>knowledge-api</artifactId>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-core</artifactId>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-xjc</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.osgi.core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.osgi.compendium</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
</dependency>
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
</dependency>
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
</dependency>
<!-- Hibernate -->
<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>
<!-- Logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency><!-- For unit test logging: configure in src/test/resources/logback-test.xml -->
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>
<!-- test -->
<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.drools</groupId>
<artifactId>drools-compiler</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jdt.core.compiler</groupId>
<artifactId>ecj</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId>
<scope>test</scope>
</dependency>
<!-- Extra test -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-embedded</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<!--
These are properties used in the database profiles. Some of them must be initialized
them to be empty so that Maven applies them via filtering to the resources.
-->
<properties>
<maven.btm.maxPoolSize>16</maven.btm.maxPoolSize>
<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.driver.jar/>
<maven.jdbc.username></maven.jdbc.username>
<maven.jdbc.password></maven.jdbc.password>
<maven.jdbc.url>jdbc:h2:</maven.jdbc.url>
</properties>
<profiles>
<profile>
<id>database</id>
<dependencies>
<!-- Add the downloaded jdbc driver jar for the database to the classpath.
!: <groupId>, <artifactId> and <version> are just placeholders and DO NOT MATTER! -->
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>downloaded-jdbc-driver-jar</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${maven.jdbc.driver.jar}</systemPath>
</dependency>
</dependencies>
</profile>
<profile>
<id>hibernate-4</id>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.4.ORM.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.4.ORM.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>maven-replacer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<phase>process-test-resources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>target/test-classes/META-INF/*.xml</include>
</includes>
<replacements>
<replacement>
<token>persistence version="1.0"</token>
<value>persistence version="2.0"</value>
</replacement>
<!-- for the schemaLocation's in persistence.xml -->
<replacement>
<token>(http://java.sun.com/xml/ns/persistence/persistence)_1(_0.xsd)</token>
<value>$1_2$2</value>
</replacement>
<replacement>
<token>(http://java.sun.com/xml/ns/persistence/orm)_1(_0.xsd)</token>
<value>$1_2$2</value>
</replacement>
<!-- for the orm.xml -->
<replacement>
<token>(xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm) orm_1_0.(xsd"\n *version=)"1.0"</token>
<value>$1 orm_2_0.$2"2.0"</value>
</replacement>
</replacements>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>