You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by mi...@apache.org on 2009/02/10 00:09:02 UTC
svn commit: r742783 -
/openjpa/branches/1.3.x/openjpa-persistence-jdbc/pom.xml
Author: mikedd
Date: Mon Feb 9 23:09:01 2009
New Revision: 742783
URL: http://svn.apache.org/viewvc?rev=742783&view=rev
Log:
OPENJPA-876 committing patch provided by Donald Woods
Modified:
openjpa/branches/1.3.x/openjpa-persistence-jdbc/pom.xml
Modified: openjpa/branches/1.3.x/openjpa-persistence-jdbc/pom.xml
URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-persistence-jdbc/pom.xml?rev=742783&r1=742782&r2=742783&view=diff
==============================================================================
--- openjpa/branches/1.3.x/openjpa-persistence-jdbc/pom.xml (original)
+++ openjpa/branches/1.3.x/openjpa-persistence-jdbc/pom.xml Mon Feb 9 23:09:01 2009
@@ -248,75 +248,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
-
- 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.
- -->
+ 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
+
+ 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
-
- You should also set the openjpa.oracle.url, openjpa.oracle.user,
- and openjpa.oracle.password properties.
- -->
+ 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 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>