mirror of https://github.com/apache/openjpa.git
OPENJPA-876 committing patch provided by Donald Woods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@742775 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ba62ff1aa3
commit
b20e5e7086
|
@ -249,75 +249,131 @@
|
|||
-->
|
||||
<profile>
|
||||
<!--
|
||||
Example db2 profile. Unfortunately the version, groupId and
|
||||
artifactId are hard coded. You may use this profile if you have
|
||||
a copy of the DB2 JCC driver and run the following commands :
|
||||
mvn install:install-file -Dfile=${path to db2jcc.jar} \
|
||||
-DgroupId=com.ibm.db2 \
|
||||
-DartifactId=jcc-driver \
|
||||
-Dversion=9.5 \
|
||||
-Dpackaging=jar
|
||||
Example db2 profile. You can use this profile if you:
|
||||
1) have the DB2 artifacts installed in a local repo and supply
|
||||
the URL:
|
||||
-Ddb2.maven.repo=http://my.local.repo
|
||||
2) have a copy of the DB2 JCC driver and run the following
|
||||
commands :
|
||||
mvn install:install-file -Dfile=${path to db2jcc.jar} \
|
||||
-DgroupId=com.ibm.db2 \
|
||||
-DartifactId=jcc-driver \
|
||||
-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
|
||||
mvn install:install-file -Dfile=${path to db2jcc_license.jar} \
|
||||
-DgroupId=com.ibm.db2 \
|
||||
-DartifactId=jcc-license \
|
||||
-Dversion=9.5 \
|
||||
-Dpackaging=jar
|
||||
|
||||
You should also set the openjpa.db2.url, openjpa.db2.user, and
|
||||
openjpa.db2.password properties.
|
||||
-->
|
||||
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 and version
|
||||
by also supplying the following properties:
|
||||
-Ddb2.groupid=com.ibm.db2
|
||||
-Ddb2.version=9.5
|
||||
-->
|
||||
<id>test-db2-jcc</id>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.ibm.db2</groupId>
|
||||
<groupId>${db2.groupid}</groupId>
|
||||
<artifactId>jcc-driver</artifactId>
|
||||
<version>9.5</version>
|
||||
<version>${db2.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.ibm.db2</groupId>
|
||||
<groupId>${db2.groupid}</groupId>
|
||||
<artifactId>jcc-license</artifactId>
|
||||
<version>9.5</version>
|
||||
<version>${db2.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
<db2.maven.repo>http://not.a.real.repository</db2.maven.repo>
|
||||
<db2.groupid>com.ibm.db2</db2.groupid>
|
||||
<db2.version>9.5</db2.version>
|
||||
<connection.driver.name>com.ibm.db2.jcc.DB2Driver</connection.driver.name>
|
||||
<connection.url>${openjpa.db2.url}</connection.url>
|
||||
<connection.username>${openjpa.db2.username}</connection.username>
|
||||
<connection.password>${openjpa.db2.password}</connection.password>
|
||||
</properties>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>db2.repository</id>
|
||||
<name>DB2 Repository</name>
|
||||
<url>${db2.maven.repo}</url>
|
||||
<layout>default</layout>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
</releases>
|
||||
</repository>
|
||||
</repositories>
|
||||
</profile>
|
||||
<profile>
|
||||
<!--
|
||||
Example oracle profile. Unfortunately the version, groupId and
|
||||
artifactId are hard coded. You may use this profile if you have
|
||||
a copy of the Oracle driver and run the following commands :
|
||||
mvn install:install-file -Dfile=${ojdbc.jar} \
|
||||
-DgroupId=com.oracle \
|
||||
-DartifactId=jdbc-driver \
|
||||
-Dversion=10g \
|
||||
-Dpackaging=jar
|
||||
Example oracle profile. You can use this profile if you:
|
||||
1) have the Oracle artifacts installed in a local repo and
|
||||
supply the URL:
|
||||
-Doracle.maven.repo=http://my.local.repo
|
||||
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
|
||||
|
||||
You should also set the openjpa.oracle.url, openjpa.oracle.user,
|
||||
and openjpa.oracle.password properties.
|
||||
-->
|
||||
You must also set the following properties:
|
||||
-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>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.oracle</groupId>
|
||||
<groupId>${oracle.groupid}</groupId>
|
||||
<artifactId>jdbc-driver</artifactId>
|
||||
<version>10g</version>
|
||||
<version>${oracle.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
<oracle.maven.repo>http://not.a.real.repository</oracle.maven.repo>
|
||||
<oracle.groupid>com.oracle</oracle.groupid>
|
||||
<oracle.version>10g</oracle.version>
|
||||
<connection.driver.name>oracle.jdbc.driver.OracleDriver</connection.driver.name>
|
||||
<connection.url>${openjpa.oracle.url}</connection.url>
|
||||
<connection.username>${openjpa.oracle.username}</connection.username>
|
||||
<connection.password>${openjpa.oracle.password}</connection.password>
|
||||
</properties>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>oracle.repository</id>
|
||||
<name>Oracle Repository</name>
|
||||
<url>${oracle.maven.repo}</url>
|
||||
<layout>default</layout>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
<checksumPolicy>ignore</checksumPolicy>
|
||||
</releases>
|
||||
</repository>
|
||||
</repositories>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
|
|
Loading…
Reference in New Issue