2006-11-12 06:44:59 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
2007-04-14 17:50:17 -04:00
|
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
or more contributor license agreements. See the NOTICE file
|
|
|
|
distributed with this work for additional information
|
|
|
|
regarding copyright ownership. The ASF licenses this file
|
|
|
|
to you under the Apache License, Version 2.0 (the
|
|
|
|
"License"); you may not use this file except in compliance
|
|
|
|
with the License. You may obtain a copy of the License at
|
2006-11-12 06:44:59 -05:00
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
2007-04-14 17:50:17 -04:00
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
|
|
software distributed under the License is distributed on an
|
|
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, either express or implied. See the License for the
|
|
|
|
specific language governing permissions and limitations
|
|
|
|
under the License.
|
2006-11-12 06:44:59 -05:00
|
|
|
-->
|
2006-07-19 17:34:44 -04:00
|
|
|
<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>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-persistence-jdbc</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
2006-08-25 15:16:23 -04:00
|
|
|
<name>OpenJPA JPA JDBC</name>
|
|
|
|
<description>OpenJPA JPA JDBC</description>
|
2007-08-14 18:39:55 -04:00
|
|
|
<url>http://openjpa.apache.org</url>
|
2006-07-19 17:34:44 -04:00
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
2007-05-09 18:23:54 -04:00
|
|
|
<artifactId>openjpa-parent</artifactId>
|
2007-05-26 15:18:37 -04:00
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
2006-07-19 17:34:44 -04:00
|
|
|
</parent>
|
2007-01-16 17:26:04 -05:00
|
|
|
<properties>
|
|
|
|
<openjpa.loglevel>INFO</openjpa.loglevel>
|
|
|
|
</properties>
|
|
|
|
<profiles>
|
2007-06-13 03:50:11 -04:00
|
|
|
|
2007-01-16 17:26:04 -05:00
|
|
|
<!-- Profile for testing with Apache Derby -->
|
|
|
|
<profile>
|
|
|
|
<id>test-derby</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
<property><name>test-derby</name></property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.derby</groupId>
|
|
|
|
<artifactId>derby</artifactId>
|
2007-02-09 18:52:57 -05:00
|
|
|
<version>10.2.2.0</version>
|
2007-01-16 17:26:04 -05:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<systemProperties>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.Log</name>
|
|
|
|
<value>DefaultLevel=${openjpa.loglevel}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionDriverName</name>
|
|
|
|
<value>org.apache.commons.dbcp.BasicDataSource</value>
|
|
|
|
</property>
|
2007-04-16 17:55:03 -04:00
|
|
|
<property>
|
|
|
|
<name>derby.stream.error.file</name>
|
|
|
|
<value>target/derby.log</value>
|
|
|
|
</property>
|
2007-01-16 17:26:04 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionProperties</name>
|
2007-02-09 18:52:57 -05:00
|
|
|
<value>DriverClassName=org.apache.derby.jdbc.EmbeddedDriver,Url=jdbc:derby:target/database/openjpa-derby-database;create=true,MaxActive=100,MaxIdle=0,MaxWait=10000,TestOnBorrow=true</value>
|
2007-01-16 17:26:04 -05:00
|
|
|
</property>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Profile for testing with HSQL DB -->
|
|
|
|
<profile>
|
|
|
|
<id>test-hsqldb</id>
|
|
|
|
<activation><property><name>test-hsqldb</name></property></activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>hsqldb</groupId>
|
|
|
|
<artifactId>hsqldb</artifactId>
|
|
|
|
<version>1.8.0.7</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<systemProperties>
|
2007-01-16 17:35:23 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.Log</name>
|
|
|
|
<value>DefaultLevel=${openjpa.loglevel}</value>
|
|
|
|
</property>
|
2007-01-16 17:26:04 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionDriverName</name>
|
|
|
|
<value>org.apache.commons.dbcp.BasicDataSource</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionProperties</name>
|
|
|
|
<value>DriverClassName=org.hsqldb.jdbcDriver,Url=jdbc:hsqldb:target/database/openjpa-hsqldb-database;create=true,MaxActive=100,MaxWait=10000,TestOnBorrow=true</value>
|
|
|
|
</property>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Profile for testing with MySQL DB -->
|
|
|
|
<profile>
|
|
|
|
<id>test-mysql</id>
|
|
|
|
<activation><property><name>test-mysql</name></property></activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
<version>5.0.4</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<systemProperties>
|
2007-01-16 17:35:23 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.Log</name>
|
|
|
|
<value>DefaultLevel=${openjpa.loglevel}</value>
|
|
|
|
</property>
|
2007-01-16 17:26:04 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionDriverName</name>
|
|
|
|
<value>org.apache.commons.dbcp.BasicDataSource</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionProperties</name>
|
|
|
|
<value>DriverClassName=com.mysql.jdbc.Driver,Url=${openjpa.mysql.url},MaxActive=100,MaxWait=10000,TestOnBorrow=true,Username=${openjpa.mysql.username},Password=${openjpa.mysql.password}</value>
|
|
|
|
</property>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Profile for testing with PostgreSQL DB -->
|
|
|
|
<profile>
|
|
|
|
<id>test-postgresql</id>
|
|
|
|
<activation><property><name>test-postgresql</name></property></activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>postgresql</groupId>
|
|
|
|
<artifactId>postgresql</artifactId>
|
|
|
|
<version>8.1-407.jdbc3</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<systemProperties>
|
2007-01-16 17:35:23 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.Log</name>
|
|
|
|
<value>DefaultLevel=${openjpa.loglevel}</value>
|
|
|
|
</property>
|
2007-01-16 17:26:04 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionDriverName</name>
|
|
|
|
<value>org.apache.commons.dbcp.BasicDataSource</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionProperties</name>
|
|
|
|
<value>DriverClassName=org.postgresql.Driver,Url=${openjpa.postgresql.url},MaxActive=100,MaxWait=10000,TestOnBorrow=true,Username=${openjpa.postgresql.username},Password=${openjpa.postgresql.password}</value>
|
|
|
|
</property>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Profile for testing with SQLServer DB using the jTDS driver -->
|
|
|
|
<profile>
|
|
|
|
<id>test-sqlserver</id>
|
|
|
|
<activation><property><name>test-sqlserver</name></property></activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.sourceforge.jtds</groupId>
|
|
|
|
<artifactId>jtds</artifactId>
|
|
|
|
<version>1.2</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<systemProperties>
|
2007-01-16 17:35:23 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.Log</name>
|
|
|
|
<value>DefaultLevel=${openjpa.loglevel}</value>
|
|
|
|
</property>
|
2007-01-16 17:26:04 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionDriverName</name>
|
|
|
|
<value>org.apache.commons.dbcp.BasicDataSource</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionProperties</name>
|
|
|
|
<value>DriverClassName=net.sourceforge.jtds.jdbc.Driver,Url=${openjpa.sqlserver.url},MaxActive=100,MaxWait=10000,TestOnBorrow=true,Username=${openjpa.sqlserver.username},Password=${openjpa.sqlserver.password}</value>
|
|
|
|
</property>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Profile for testing with Sybase DB using the jTDS driver -->
|
|
|
|
<profile>
|
|
|
|
<id>test-sybase</id>
|
|
|
|
<activation><property><name>test-sybase</name></property></activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.sourceforge.jtds</groupId>
|
|
|
|
<artifactId>jtds</artifactId>
|
|
|
|
<version>1.2</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<systemProperties>
|
2007-01-16 17:35:23 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.Log</name>
|
|
|
|
<value>DefaultLevel=${openjpa.loglevel}</value>
|
|
|
|
</property>
|
2007-01-16 17:26:04 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionDriverName</name>
|
|
|
|
<value>org.apache.commons.dbcp.BasicDataSource</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionProperties</name>
|
|
|
|
<value>DriverClassName=net.sourceforge.jtds.jdbc.Driver,Url=${openjpa.sybase.url},MaxActive=100,MaxWait=10000,TestOnBorrow=true,Username=${openjpa.sybase.username},Password=${openjpa.sybase.password}</value>
|
|
|
|
</property>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!-- Profile for testing with a custom DB using a system jar -->
|
|
|
|
<!--
|
|
|
|
For example, to test with Oracle, you might run:
|
|
|
|
mvn test -Dtest=TestPersistence -Ptest-custom \
|
|
|
|
-Dopenjpa.custom.driverjar=$(pwd)/drivers/jdbc-oracle-10_2_0_1_0.jar \
|
|
|
|
-Dopenjpa.custom.driverclass=oracle.jdbc.driver.OracleDriver \
|
|
|
|
-Dopenjpa.custom.url=jdbc:oracle:thin:@HOST:PORT:DBNAME \
|
|
|
|
-Dopenjpa.custom.username=USERNAME \
|
|
|
|
-Dopenjpa.custom.password=PASSWORD
|
|
|
|
-->
|
|
|
|
<profile>
|
|
|
|
<id>test-custom</id>
|
|
|
|
<activation><property><name>test-custom</name></property></activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>openjpa.customdriver</groupId>
|
|
|
|
<artifactId>openjpa.customdriver</artifactId>
|
|
|
|
<version>1.0</version>
|
|
|
|
<scope>system</scope>
|
|
|
|
<systemPath>${openjpa.custom.driverjar}</systemPath>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<systemProperties>
|
2007-01-16 17:35:23 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.Log</name>
|
|
|
|
<value>DefaultLevel=${openjpa.loglevel}</value>
|
|
|
|
</property>
|
2007-01-16 17:26:04 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionDriverName</name>
|
|
|
|
<value>org.apache.commons.dbcp.BasicDataSource</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionProperties</name>
|
|
|
|
<value>DriverClassName=${openjpa.custom.driverclass},Url=${openjpa.custom.url},MaxActive=100,MaxWait=10000,TestOnBorrow=true,Username=${openjpa.custom.username},Password=${openjpa.custom.password}</value>
|
|
|
|
</property>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-07-19 17:34:44 -04:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-jdbc-5</artifactId>
|
2006-07-26 00:24:28 -04:00
|
|
|
<version>${pom.version}</version>
|
2006-07-19 17:34:44 -04:00
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-persistence</artifactId>
|
2006-07-26 00:24:28 -04:00
|
|
|
<version>${pom.version}</version>
|
2006-07-19 17:34:44 -04:00
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-dbcp</groupId>
|
|
|
|
<artifactId>commons-dbcp</artifactId>
|
|
|
|
<version>1.2.1</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-collections</groupId>
|
|
|
|
<artifactId>commons-collections</artifactId>
|
2006-11-14 15:44:02 -05:00
|
|
|
<version>3.2</version>
|
2006-07-19 17:34:44 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<source>1.5</source>
|
|
|
|
<target>1.5</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>test-compile</phase>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
2006-08-29 05:53:48 -04:00
|
|
|
<path id="cp">
|
|
|
|
<path refid="maven.test.classpath"/>
|
|
|
|
<path refid="maven.compile.classpath"/>
|
|
|
|
<path refid="maven.dependency.classpath"/>
|
|
|
|
</path>
|
2007-07-19 16:55:30 -04:00
|
|
|
<taskdef name="openjpac" classname=
|
2006-08-29 05:53:48 -04:00
|
|
|
"org.apache.openjpa.ant.PCEnhancerTask">
|
2007-07-19 16:55:30 -04:00
|
|
|
<classpath refid="cp"/>
|
|
|
|
</taskdef>
|
2006-08-29 05:53:48 -04:00
|
|
|
<fileset id="enhance.path.ref"
|
|
|
|
dir="${project.build.testOutputDirectory}">
|
2006-08-25 17:00:19 -04:00
|
|
|
<include name="**/*.class"/>
|
2007-07-19 16:55:30 -04:00
|
|
|
<exclude name="**/inheritance/serializable/*.class"/>
|
2007-07-26 18:08:37 -04:00
|
|
|
<exclude name="**/xml/*.class"/>
|
|
|
|
<exclude name="**/Unenhanced*.class"/>
|
2006-08-25 17:00:19 -04:00
|
|
|
</fileset>
|
2007-07-19 16:55:30 -04:00
|
|
|
<openjpac>
|
|
|
|
<classpath refid="cp"/>
|
|
|
|
<fileset refid="enhance.path.ref"/>
|
|
|
|
</openjpac>
|
|
|
|
<!-- Set detach state for serialization tests -->
|
|
|
|
<openjpac>
|
|
|
|
<config detachState="fgs(DetachedStateField=true)"/>
|
|
|
|
<classpath refid="cp"/>
|
|
|
|
<fileset dir="${project.build.testOutputDirectory}">
|
|
|
|
<include name="**/inheritance/serializable/*.class"/>
|
|
|
|
<!-- include files from orm.xml -->
|
|
|
|
<include name="**/xml/*.class"/>
|
|
|
|
</fileset>
|
|
|
|
</openjpac>
|
2006-07-19 17:34:44 -04:00
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</project>
|