mirror of https://github.com/apache/openjpa.git
OPENJPA-1252 Include a Derby Network Server test profile, allow Derby version to be changed on the cmdline, and cleanup some formatting/comments.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805841 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b11cdae338
commit
7065743f17
|
@ -293,7 +293,7 @@ databaseName=${db.name}
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.derby</groupId>
|
<groupId>org.apache.derby</groupId>
|
||||||
<artifactId>derby</artifactId>
|
<artifactId>derby</artifactId>
|
||||||
<version>10.2.1.6</version>
|
<version>${derby.version}</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
|
@ -63,7 +63,9 @@
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<argLine>${surefire.jvm.args}</argLine>
|
<argLine>${surefire.jvm.args}</argLine>
|
||||||
<includes><include>org/apache/openjpa/persistence/enhance/DynamicEnhancementSuite.java</include></includes>
|
<includes>
|
||||||
|
<include>org/apache/openjpa/persistence/enhance/DynamicEnhancementSuite.java</include>
|
||||||
|
</includes>
|
||||||
<systemProperties>
|
<systemProperties>
|
||||||
<property>
|
<property>
|
||||||
<name>openjpa.Log</name>
|
<name>openjpa.Log</name>
|
||||||
|
@ -91,17 +93,25 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
<!-- Profile for testing with Apache Derby -->
|
|
||||||
|
<!-- Default profile for testing with embedded Apache Derby -->
|
||||||
<profile>
|
<profile>
|
||||||
|
<!--
|
||||||
|
Optionally, you can override the following properties:
|
||||||
|
-Dderby.version=10.2.2.0
|
||||||
|
-->
|
||||||
<id>test-derby</id>
|
<id>test-derby</id>
|
||||||
<activation>
|
<activation>
|
||||||
<activeByDefault>true</activeByDefault>
|
<activeByDefault>true</activeByDefault>
|
||||||
<property><name>test-derby</name></property>
|
<property>
|
||||||
|
<name>test-derby</name>
|
||||||
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.derby</groupId>
|
<groupId>org.apache.derby</groupId>
|
||||||
<artifactId>derby</artifactId>
|
<artifactId>derby</artifactId>
|
||||||
|
<version>${derby.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -113,10 +123,54 @@
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<!-- Profile for testing with Apache Derby network server -->
|
||||||
|
<profile>
|
||||||
|
<!--
|
||||||
|
Example Derby Network Server profile.
|
||||||
|
You must manually start a Derby network server instance and
|
||||||
|
also set the following properties:
|
||||||
|
-Dopenjpa.derbynet.url=jdbc:derby://<HOST>:<PORT>/<DBNAME>;\
|
||||||
|
create=true
|
||||||
|
|
||||||
|
Optionally, you can override the following properties:
|
||||||
|
-Dopenjpa.derbynet.driver=org.apache.derby.jdbc.ClientXADataSource
|
||||||
|
-Dopenjpa.derbynet.username=
|
||||||
|
-Dopenjpa.derbynet.password=
|
||||||
|
-Dderby.version=10.2.2.0
|
||||||
|
-->
|
||||||
|
<id>test-derbynet</id>
|
||||||
|
<activation>
|
||||||
|
<property><name>test-derbynet</name></property>
|
||||||
|
</activation>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.derby</groupId>
|
||||||
|
<artifactId>derbyclient</artifactId>
|
||||||
|
<version>${derby.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<properties>
|
||||||
|
<openjpa.derbynet.url>jdbc:derby://localhost:1527/openjpa20;create=true;traceDirectory=target;traceFile=derby.log</openjpa.derbynet.url>
|
||||||
|
<openjpa.derbynet.driver>org.apache.derby.jdbc.ClientDriver</openjpa.derbynet.driver>
|
||||||
|
<!-- Note: commons-dbcp requires dummy values for uid/pwd -->
|
||||||
|
<openjpa.derbynet.username>uid</openjpa.derbynet.username>
|
||||||
|
<openjpa.derbynet.password>pwd</openjpa.derbynet.password>
|
||||||
|
<connection.driver.name>${openjpa.derbynet.driver}</connection.driver.name>
|
||||||
|
<connection.url>${openjpa.derbynet.url}</connection.url>
|
||||||
|
<connection.username>${openjpa.derbynet.username}</connection.username>
|
||||||
|
<connection.password>${openjpa.derbynet.password}</connection.password>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
|
||||||
<!-- Profile for testing with HSQL DB -->
|
<!-- Profile for testing with HSQL DB -->
|
||||||
<profile>
|
<profile>
|
||||||
<id>test-hsqldb</id>
|
<id>test-hsqldb</id>
|
||||||
<activation><property><name>test-hsqldb</name></property></activation>
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>test-hsqldb</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>hsqldb</groupId>
|
<groupId>hsqldb</groupId>
|
||||||
|
@ -137,7 +191,11 @@
|
||||||
<!-- Profile for testing with MySQL DB -->
|
<!-- Profile for testing with MySQL DB -->
|
||||||
<profile>
|
<profile>
|
||||||
<id>test-mysql</id>
|
<id>test-mysql</id>
|
||||||
<activation><property><name>test-mysql</name></property></activation>
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>test-mysql</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>mysql</groupId>
|
<groupId>mysql</groupId>
|
||||||
|
@ -158,7 +216,11 @@
|
||||||
<!-- Profile for testing with PostgreSQL DB -->
|
<!-- Profile for testing with PostgreSQL DB -->
|
||||||
<profile>
|
<profile>
|
||||||
<id>test-postgresql</id>
|
<id>test-postgresql</id>
|
||||||
<activation><property><name>test-postgresql</name></property></activation>
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>test-postgresql</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>postgresql</groupId>
|
<groupId>postgresql</groupId>
|
||||||
|
@ -248,11 +310,12 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sourceforge.jtds</groupId>
|
<groupId>net.sourceforge.jtds</groupId>
|
||||||
<artifactId>jtds</artifactId>
|
<artifactId>jtds</artifactId>
|
||||||
<version>1.2</version>
|
<version>${jtds.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
|
<jtds.version>1.2</jtds.version>
|
||||||
<connection.driver.name>net.sourceforge.jtds.jdbc.Driver</connection.driver.name>
|
<connection.driver.name>net.sourceforge.jtds.jdbc.Driver</connection.driver.name>
|
||||||
<connection.url>${openjpa.sqlserver.url}</connection.url>
|
<connection.url>${openjpa.sqlserver.url}</connection.url>
|
||||||
<connection.username>${openjpa.sqlserver.username}</connection.username>
|
<connection.username>${openjpa.sqlserver.username}</connection.username>
|
||||||
|
@ -263,16 +326,21 @@
|
||||||
<!-- Profile for testing with Sybase DB using the jTDS driver -->
|
<!-- Profile for testing with Sybase DB using the jTDS driver -->
|
||||||
<profile>
|
<profile>
|
||||||
<id>test-sybase</id>
|
<id>test-sybase</id>
|
||||||
<activation><property><name>test-sybase</name></property></activation>
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>test-sybase</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sourceforge.jtds</groupId>
|
<groupId>net.sourceforge.jtds</groupId>
|
||||||
<artifactId>jtds</artifactId>
|
<artifactId>jtds</artifactId>
|
||||||
<version>1.2</version>
|
<version>${jtds.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
|
<jtds.version>1.2</jtds.version>
|
||||||
<connection.driver.name>net.sourceforge.jtds.jdbc.Driver</connection.driver.name>
|
<connection.driver.name>net.sourceforge.jtds.jdbc.Driver</connection.driver.name>
|
||||||
<connection.url>${openjpa.sybase.url}</connection.url>
|
<connection.url>${openjpa.sybase.url}</connection.url>
|
||||||
<connection.username>${openjpa.sybase.username}</connection.username>
|
<connection.username>${openjpa.sybase.username}</connection.username>
|
||||||
|
@ -280,6 +348,7 @@
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<!-- Profile for testing with Ingres DB -->
|
||||||
<profile>
|
<profile>
|
||||||
<id>test-ingres</id>
|
<id>test-ingres</id>
|
||||||
<activation><property><name>test-ingres</name></property></activation>
|
<activation><property><name>test-ingres</name></property></activation>
|
||||||
|
@ -287,11 +356,12 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.ingres.jdbc</groupId>
|
<groupId>com.ingres.jdbc</groupId>
|
||||||
<artifactId>iijdbc</artifactId>
|
<artifactId>iijdbc</artifactId>
|
||||||
<version>9.2-3.4.8</version>
|
<version>${ingres.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
|
<ingres.version>9.2-3.4.8</ingres.version>
|
||||||
<connection.driver.name>com.ingres.jdbc.IngresDriver</connection.driver.name>
|
<connection.driver.name>com.ingres.jdbc.IngresDriver</connection.driver.name>
|
||||||
<connection.url>${openjpa.ingres.url}</connection.url>
|
<connection.url>${openjpa.ingres.url}</connection.url>
|
||||||
<connection.username>${openjpa.ingres.username}</connection.username>
|
<connection.username>${openjpa.ingres.username}</connection.username>
|
||||||
|
@ -311,7 +381,11 @@
|
||||||
-->
|
-->
|
||||||
<profile>
|
<profile>
|
||||||
<id>test-custom</id>
|
<id>test-custom</id>
|
||||||
<activation><property><name>test-custom</name></property></activation>
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>test-custom</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>openjpa.customdriver</groupId>
|
<groupId>openjpa.customdriver</groupId>
|
||||||
|
@ -347,7 +421,11 @@
|
||||||
-->
|
-->
|
||||||
<profile>
|
<profile>
|
||||||
<id>test-custom2</id>
|
<id>test-custom2</id>
|
||||||
<activation><property><name>test-custom2</name></property></activation>
|
<activation>
|
||||||
|
<property>
|
||||||
|
<name>test-custom2</name>
|
||||||
|
</property>
|
||||||
|
</activation>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>openjpa.customdriver1</groupId>
|
<groupId>openjpa.customdriver1</groupId>
|
||||||
|
@ -452,6 +530,8 @@
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<!-- Profile for testing Informix with the DB2 JCC driver -->
|
||||||
<profile>
|
<profile>
|
||||||
<!--
|
<!--
|
||||||
Example Informix JCC profile. You can use this profile if you:
|
Example Informix JCC profile. You can use this profile if you:
|
||||||
|
@ -518,6 +598,8 @@
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<!-- Profile for testing with Oracle DB -->
|
||||||
<profile>
|
<profile>
|
||||||
<!--
|
<!--
|
||||||
Example oracle profile. You can use this profile if you:
|
Example oracle profile. You can use this profile if you:
|
||||||
|
|
|
@ -95,8 +95,13 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
<!-- Profile for testing with Apache Derby -->
|
|
||||||
|
<!-- Default profile for testing with embedded Apache Derby -->
|
||||||
<profile>
|
<profile>
|
||||||
|
<!--
|
||||||
|
Optionally, you can override the following properties:
|
||||||
|
-Dderby.version=10.2.2.0
|
||||||
|
-->
|
||||||
<id>test-derby</id>
|
<id>test-derby</id>
|
||||||
<activation>
|
<activation>
|
||||||
<activeByDefault>true</activeByDefault>
|
<activeByDefault>true</activeByDefault>
|
||||||
|
@ -108,6 +113,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.derby</groupId>
|
<groupId>org.apache.derby</groupId>
|
||||||
<artifactId>derby</artifactId>
|
<artifactId>derby</artifactId>
|
||||||
|
<version>${derby.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -119,6 +125,46 @@
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<!-- Profile for testing with Apache Derby network server -->
|
||||||
|
<profile>
|
||||||
|
<!--
|
||||||
|
Example Derby Network Server profile.
|
||||||
|
You must manually start a Derby network server instance and
|
||||||
|
also set the following properties:
|
||||||
|
-Dopenjpa.derbynet.url=jdbc:derby://<HOST>:<PORT>/<DBNAME>;\
|
||||||
|
create=true
|
||||||
|
|
||||||
|
Optionally, you can override the following properties:
|
||||||
|
-Dopenjpa.derbynet.driver=org.apache.derby.jdbc.ClientXADataSource
|
||||||
|
-Dopenjpa.derbynet.username=
|
||||||
|
-Dopenjpa.derbynet.password=
|
||||||
|
-Dderby.version=10.2.2.0
|
||||||
|
-->
|
||||||
|
<id>test-derbynet</id>
|
||||||
|
<activation>
|
||||||
|
<property><name>test-derbynet</name></property>
|
||||||
|
</activation>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.derby</groupId>
|
||||||
|
<artifactId>derbyclient</artifactId>
|
||||||
|
<version>${derby.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<properties>
|
||||||
|
<openjpa.derbynet.url>jdbc:derby://localhost:1527/openjpa20;create=true;traceDirectory=target;traceFile=derby.log</openjpa.derbynet.url>
|
||||||
|
<openjpa.derbynet.driver>org.apache.derby.jdbc.ClientDriver</openjpa.derbynet.driver>
|
||||||
|
<!-- Note: commons-dbcp requires dummy values for uid/pwd -->
|
||||||
|
<openjpa.derbynet.username>uid</openjpa.derbynet.username>
|
||||||
|
<openjpa.derbynet.password>pwd</openjpa.derbynet.password>
|
||||||
|
<connection.driver.name>${openjpa.derbynet.driver}</connection.driver.name>
|
||||||
|
<connection.url>${openjpa.derbynet.url}</connection.url>
|
||||||
|
<connection.username>${openjpa.derbynet.username}</connection.username>
|
||||||
|
<connection.password>${openjpa.derbynet.password}</connection.password>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
|
||||||
<!-- Profile for testing with HSQL DB -->
|
<!-- Profile for testing with HSQL DB -->
|
||||||
<profile>
|
<profile>
|
||||||
<id>test-hsqldb</id>
|
<id>test-hsqldb</id>
|
||||||
|
@ -197,16 +243,31 @@
|
||||||
<!-- Profile for testing with SQLServer DB using MS JDBC driver -->
|
<!-- Profile for testing with SQLServer DB using MS JDBC driver -->
|
||||||
<profile>
|
<profile>
|
||||||
<!--
|
<!--
|
||||||
Example MS SQL profile. You can use this profile if you: 1) have the MS SQL artifacts installed in a
|
Example MS SQL profile. You can use this profile if you:
|
||||||
local repo and supply the URL: -Dmssql.maven.repo=http://my.local.repo 2) have a copy of the MS SQL JDBC
|
1) have the MS SQL artifacts installed in a local repo and
|
||||||
driver from: http://msdn.microsoft.com/en-us/data/aa937724.aspx and run the following commands : mvn
|
supply the URL:
|
||||||
install:install-file -Dfile=${path to sqljdbc.jar} \ -DgroupId=com.microsoft.sqlserver \
|
-Dmssql.maven.repo=http://my.local.repo
|
||||||
-DartifactId=sqljdbc \ -Dversion=2.0 \ -Dpackaging=jar You must also set the following properties:
|
2) have a copy of the MS SQL JDBC driver from:
|
||||||
-Dopenjpa.mssql.url=jdbc:sqlserver://<HOST>:<PORT>;\ DataBaseName=<DBNAME>
|
http://msdn.microsoft.com/en-us/data/aa937724.aspx
|
||||||
-Dopenjpa.mssql.username=<mssql_uid> -Dopenjpa.mssql.password=<mssql_pwd> Optionally, you can override
|
and run the following commands :
|
||||||
the default groupId and version by also supplying the following properties:
|
mvn install:install-file -Dfile=${path to sqljdbc.jar} \
|
||||||
-Dmssql.groupid=com.microsoft.sqlserver -Dmssql.version=2.0 If you are using Java SE 6 or later, you
|
-DgroupId=com.microsoft.sqlserver \
|
||||||
will need to use: -Dmssql.artifactid=sqljdbc4
|
-DartifactId=sqljdbc \
|
||||||
|
-Dversion=2.0 \
|
||||||
|
-Dpackaging=jar
|
||||||
|
|
||||||
|
You must also set the following properties:
|
||||||
|
-Dopenjpa.mssql.url=jdbc:sqlserver://<HOST>:<PORT>;\
|
||||||
|
DataBaseName=<DBNAME>
|
||||||
|
-Dopenjpa.mssql.username=<mssql_uid>
|
||||||
|
-Dopenjpa.mssql.password=<mssql_pwd>
|
||||||
|
|
||||||
|
Optionally, you can override the default groupId and version
|
||||||
|
by also supplying the following properties:
|
||||||
|
-Dmssql.groupid=com.microsoft.sqlserver
|
||||||
|
-Dmssql.version=2.0
|
||||||
|
If you are using Java SE 6 or later, you will need to use:
|
||||||
|
-Dmssql.artifactid=sqljdbc4
|
||||||
-->
|
-->
|
||||||
<id>test-mssql</id>
|
<id>test-mssql</id>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -251,11 +312,12 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sourceforge.jtds</groupId>
|
<groupId>net.sourceforge.jtds</groupId>
|
||||||
<artifactId>jtds</artifactId>
|
<artifactId>jtds</artifactId>
|
||||||
<version>1.2</version>
|
<version>${jtds.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
|
<jtds.version>1.2</jtds.version>
|
||||||
<connection.driver.name>net.sourceforge.jtds.jdbc.Driver</connection.driver.name>
|
<connection.driver.name>net.sourceforge.jtds.jdbc.Driver</connection.driver.name>
|
||||||
<connection.url>${openjpa.sqlserver.url}</connection.url>
|
<connection.url>${openjpa.sqlserver.url}</connection.url>
|
||||||
<connection.username>${openjpa.sqlserver.username}</connection.username>
|
<connection.username>${openjpa.sqlserver.username}</connection.username>
|
||||||
|
@ -275,11 +337,12 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sourceforge.jtds</groupId>
|
<groupId>net.sourceforge.jtds</groupId>
|
||||||
<artifactId>jtds</artifactId>
|
<artifactId>jtds</artifactId>
|
||||||
<version>1.2</version>
|
<version>${jtds.version}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
|
<jtds.version>1.2</jtds.version>
|
||||||
<connection.driver.name>net.sourceforge.jtds.jdbc.Driver</connection.driver.name>
|
<connection.driver.name>net.sourceforge.jtds.jdbc.Driver</connection.driver.name>
|
||||||
<connection.url>${openjpa.sybase.url}</connection.url>
|
<connection.url>${openjpa.sybase.url}</connection.url>
|
||||||
<connection.username>${openjpa.sybase.username}</connection.username>
|
<connection.username>${openjpa.sybase.username}</connection.username>
|
||||||
|
@ -287,12 +350,35 @@
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<!-- Profile for testing with Ingres DB -->
|
||||||
|
<profile>
|
||||||
|
<id>test-ingres</id>
|
||||||
|
<activation><property><name>test-ingres</name></property></activation>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.ingres.jdbc</groupId>
|
||||||
|
<artifactId>iijdbc</artifactId>
|
||||||
|
<version>${ingres.version}</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<properties>
|
||||||
|
<ingres.version>9.2-3.4.8</ingres.version>
|
||||||
|
<connection.driver.name>com.ingres.jdbc.IngresDriver</connection.driver.name>
|
||||||
|
<connection.url>${openjpa.ingres.url}</connection.url>
|
||||||
|
<connection.username>${openjpa.ingres.username}</connection.username>
|
||||||
|
<connection.password>${openjpa.ingres.password}</connection.password>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
|
||||||
<!-- Profile for testing with a custom DB using a system jar -->
|
<!-- 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 \
|
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.driverjar=$(pwd)/drivers/jdbc-oracle-10_2_0_1_0.jar \
|
||||||
-Dopenjpa.custom.driverclass=oracle.jdbc.driver.OracleDriver \
|
-Dopenjpa.custom.driverclass=oracle.jdbc.driver.OracleDriver \
|
||||||
-Dopenjpa.custom.url=jdbc:oracle:thin:@HOST:PORT:DBNAME \ -Dopenjpa.custom.username=USERNAME \
|
-Dopenjpa.custom.url=jdbc:oracle:thin:@HOST:PORT:DBNAME \
|
||||||
|
-Dopenjpa.custom.username=USERNAME \
|
||||||
-Dopenjpa.custom.password=PASSWORD
|
-Dopenjpa.custom.password=PASSWORD
|
||||||
-->
|
-->
|
||||||
<profile>
|
<profile>
|
||||||
|
@ -326,11 +412,14 @@
|
||||||
added.
|
added.
|
||||||
-->
|
-->
|
||||||
<!--
|
<!--
|
||||||
For example, to test with DB2, you might run: mvn test -Dtest=TestPersistence -Ptest-custom2 \
|
For example, to test with DB2, you might run:
|
||||||
|
mvn test -Dtest=TestPersistence -Ptest-custom2 \
|
||||||
-Dopenjpa.custom.driverjar1=$(pwd)/drivers/db2jcc.jar \
|
-Dopenjpa.custom.driverjar1=$(pwd)/drivers/db2jcc.jar \
|
||||||
-Dopenjpa.custom.driverjar2=$(pwd)/drviers/db2jcc_license_cu.jar \
|
-Dopenjpa.custom.driverjar2=$(pwd)/drviers/db2jcc_license_cu.jar \
|
||||||
-Dopenjpa.custom.driverclass=com.ibm.db2.jcc.DB2Driver \ -Dopenjpa.custom.url=jdbc:db2://HOST:PORT/DBNAME \
|
-Dopenjpa.custom.driverclass=com.ibm.db2.jcc.DB2Driver \
|
||||||
-Dopenjpa.custom.username=USERNAME \ -Dopenjpa.custom.password=PASSWORD
|
-Dopenjpa.custom.url=jdbc:db2://HOST:PORT/DBNAME \
|
||||||
|
-Dopenjpa.custom.username=USERNAME \
|
||||||
|
-Dopenjpa.custom.password=PASSWORD
|
||||||
-->
|
-->
|
||||||
<profile>
|
<profile>
|
||||||
<id>test-custom2</id>
|
<id>test-custom2</id>
|
||||||
|
@ -364,21 +453,42 @@
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
The test-custom2 profile does not work very well when used with a continuous build system. As a convenience
|
The test-custom2 profile does not work very well when used with a
|
||||||
I've added profiles for some of the proprietary databases to make testing easier.
|
continuous build system. As a convenience I've added profiles for
|
||||||
|
some of the proprietary databases to make testing easier.
|
||||||
-->
|
-->
|
||||||
<profile>
|
<profile>
|
||||||
<!--
|
<!--
|
||||||
Example db2 profile. You can use this profile if you: 1) have the DB2 artifacts installed in a local
|
Example db2 profile. You can use this profile if you:
|
||||||
repo and supply the URL: -Ddb2.maven.repo=http://my.local.repo 2) have a copy of the DB2 JCC driver and
|
1) have the DB2 artifacts installed in a local repo and supply
|
||||||
run the following commands : mvn install:install-file -Dfile=${path to db2jcc.jar} \
|
the URL:
|
||||||
-DgroupId=com.ibm.db2 \ -DartifactId=jcc-driver \ -Dversion=9.5 \ -Dpackaging=jar mvn
|
-Ddb2.maven.repo=http://my.local.repo
|
||||||
install:install-file -Dfile=${path to db2jcc_license.jar} \ -DgroupId=com.ibm.db2 \
|
2) have a copy of the DB2 JCC driver and run the following
|
||||||
-DartifactId=jcc-license \ -Dversion=9.5 \ -Dpackaging=jar You must also set the following properties:
|
commands :
|
||||||
-Dopenjpa.db2.url=jdbc:db2://<HOST>:<PORT>/<DBNAME> -Dopenjpa.db2.username=<db2_uid>
|
mvn install:install-file -Dfile=${path to db2jcc.jar} \
|
||||||
-Dopenjpa.db2.password=<db2_pwd> Optionally, you can override the default DB2 groupId, artifactIds and
|
-DgroupId=com.ibm.db2 \
|
||||||
version by also supplying the following properties: -Ddb2.groupid=com.ibm.db2
|
-DartifactId=jcc-driver \
|
||||||
-Dids.driver.artifactid=jcc-driver -Dids.license.artifactid=jcc-license -Ddb2.version=9.5
|
-Dversion=9.5 \
|
||||||
|
-Dpackaging=jar
|
||||||
|
|
||||||
|
mvn install:install-file -Dfile=${path to db2jcc_license.jar} \
|
||||||
|
-DgroupId=com.ibm.db2 \
|
||||||
|
-DartifactId=jcc-license \
|
||||||
|
-Dversion=9.5 \
|
||||||
|
-Dpackaging=jar
|
||||||
|
|
||||||
|
You must also set the following properties:
|
||||||
|
-Dopenjpa.db2.url=jdbc:db2://<HOST>:<PORT>/<DBNAME>
|
||||||
|
-Dopenjpa.db2.username=<db2_uid>
|
||||||
|
-Dopenjpa.db2.password=<db2_pwd>
|
||||||
|
|
||||||
|
Optionally, you can override the default DB2 groupId,
|
||||||
|
artifactIds and version by also supplying the following
|
||||||
|
properties:
|
||||||
|
-Ddb2.groupid=com.ibm.db2
|
||||||
|
-Dids.driver.artifactid=jcc-driver
|
||||||
|
-Dids.license.artifactid=jcc-license
|
||||||
|
-Ddb2.version=9.5
|
||||||
-->
|
-->
|
||||||
<id>test-db2-jcc</id>
|
<id>test-db2-jcc</id>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -422,16 +532,31 @@
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<!-- Profile for testing Informix with the DB2 JCC driver -->
|
||||||
<profile>
|
<profile>
|
||||||
<!--
|
<!--
|
||||||
Example Informix JCC profile. You can use this profile if you: 1a) have the DB2 JCC artifacts installed
|
Example Informix JCC profile. You can use this profile if you:
|
||||||
in a local repo and supply the URL: -Dids.maven.repo=http://my.local.repo 1b) or have a copy of the DB2
|
1a) have the DB2 JCC artifacts installed in a local repo and
|
||||||
JCC driver and run the commands listed above in the test-db2-jcc profile. 2) have the DRDA service
|
supply the URL:
|
||||||
enabled on the IDS server, which is usually port 9089 You must also set the following properties:
|
-Dids.maven.repo=http://my.local.repo
|
||||||
-Dopenjpa.ids.url=jdbc:ids://<HOST>:<PORT>/<DBNAME> -Dopenjpa.ids.username=<ids_uid>
|
1b) or have a copy of the DB2 JCC driver and run the commands
|
||||||
-Dopenjpa.ids.password=<ids_pwd> Optionally, you can override the default DB2 JCC groupId, artifactIds
|
listed above in the test-db2-jcc profile.
|
||||||
and version by also supplying the following properties: -Dids.groupid=com.ibm.db2
|
2) have the DRDA service enabled on the IDS server, which
|
||||||
-Dids.driver.artifactid=jcc-driver -Dids.license.artifactid=jcc-license -Dids.version=9.5
|
is usually port 9089
|
||||||
|
|
||||||
|
You must also set the following properties:
|
||||||
|
-Dopenjpa.ids.url=jdbc:ids://<HOST>:<PORT>/<DBNAME>
|
||||||
|
-Dopenjpa.ids.username=<ids_uid>
|
||||||
|
-Dopenjpa.ids.password=<ids_pwd>
|
||||||
|
|
||||||
|
Optionally, you can override the default DB2 JCC groupId,
|
||||||
|
artifactIds and version by also supplying the following
|
||||||
|
properties:
|
||||||
|
-Dids.groupid=com.ibm.db2
|
||||||
|
-Dids.driver.artifactid=jcc-driver
|
||||||
|
-Dids.license.artifactid=jcc-license
|
||||||
|
-Dids.version=9.5
|
||||||
-->
|
-->
|
||||||
<id>test-ids-jcc</id>
|
<id>test-ids-jcc</id>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -475,16 +600,31 @@
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<!-- Profile for testing with Oracle DB -->
|
||||||
<profile>
|
<profile>
|
||||||
<!--
|
<!--
|
||||||
Example oracle profile. You can use this profile if you: 1) have the Oracle artifacts installed in a
|
Example oracle profile. You can use this profile if you:
|
||||||
local repo and supply the URL: -Doracle.maven.repo=http://my.local.repo 2) have a copy of the Oracle
|
1) have the Oracle artifacts installed in a local repo and
|
||||||
driver and run the following command: mvn install:install-file -Dfile=${path to ojdbc.jar} \
|
supply the URL:
|
||||||
-DgroupId=com.oracle \ -DartifactId=jdbc-driver \ -Dversion=10g \ -Dpackaging=jar You must also set the
|
-Doracle.maven.repo=http://my.local.repo
|
||||||
following properties: -Dopenjpa.oracle.url -Dopenjpa.oracle.username -Dopenjpa.oracle.password
|
2) have a copy of the Oracle driver and run the following
|
||||||
|
command:
|
||||||
|
mvn install:install-file -Dfile=${path to ojdbc.jar} \
|
||||||
|
-DgroupId=com.oracle \
|
||||||
|
-DartifactId=jdbc-driver \
|
||||||
|
-Dversion=10g \
|
||||||
|
-Dpackaging=jar
|
||||||
|
|
||||||
Optionally, you can override the default Oracle groupId and version by also supplying the following
|
You must also set the following properties:
|
||||||
properties: -Doracle.groupid=com.oracle -Doracle.version=10g
|
-Dopenjpa.oracle.url
|
||||||
|
-Dopenjpa.oracle.username
|
||||||
|
-Dopenjpa.oracle.password
|
||||||
|
|
||||||
|
Optionally, you can override the default Oracle groupId and
|
||||||
|
version by also supplying the following properties:
|
||||||
|
-Doracle.groupid=com.oracle
|
||||||
|
-Doracle.version=10g
|
||||||
-->
|
-->
|
||||||
<id>test-oracle</id>
|
<id>test-oracle</id>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
3
pom.xml
3
pom.xml
|
@ -46,6 +46,7 @@
|
||||||
<surefire.jvm.args>${test.jvm.arguments}</surefire.jvm.args>
|
<surefire.jvm.args>${test.jvm.arguments}</surefire.jvm.args>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<checkstyle.config.location>../openjpa-project/checkstyle.xml</checkstyle.config.location>
|
<checkstyle.config.location>../openjpa-project/checkstyle.xml</checkstyle.config.location>
|
||||||
|
<derby.version>10.2.2.0</derby.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -513,7 +514,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.derby</groupId>
|
<groupId>org.apache.derby</groupId>
|
||||||
<artifactId>derby</artifactId>
|
<artifactId>derby</artifactId>
|
||||||
<version>10.2.2.0</version>
|
<version>${derby.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-dbcp</groupId>
|
<groupId>commons-dbcp</groupId>
|
||||||
|
|
Loading…
Reference in New Issue