2007-07-03 18:42:39 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
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
|
2010-08-05 13:10:20 -04:00
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2010-08-05 13:10:20 -04:00
|
|
|
|
2007-07-03 18:42:39 -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
|
2010-08-05 13:10:20 -04:00
|
|
|
under the License.
|
2007-07-03 18:42:39 -04:00
|
|
|
-->
|
2010-08-05 13:10:20 -04:00
|
|
|
<!--
|
|
|
|
Maven release plugin requires the project tag to be on a single line.
|
2008-06-11 12:48:56 -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">
|
2010-02-18 14:32:10 -05:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
2008-11-17 17:56:14 -05:00
|
|
|
<parent>
|
|
|
|
<groupId>org.apache</groupId>
|
|
|
|
<artifactId>apache</artifactId>
|
2023-04-24 03:16:57 -04:00
|
|
|
<version>29</version>
|
2008-11-17 17:56:14 -05:00
|
|
|
</parent>
|
2010-02-18 14:32:10 -05:00
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-parent</artifactId>
|
|
|
|
<packaging>pom</packaging>
|
2009-05-28 08:10:45 -04:00
|
|
|
<name>OpenJPA Parent POM</name>
|
2023-04-24 03:16:57 -04:00
|
|
|
<description>Apache OpenJPA implementation of Jakarta JPA 3.1</description>
|
2010-07-28 15:24:33 -04:00
|
|
|
|
2023-04-24 03:16:57 -04:00
|
|
|
<version>4.0.0-SNAPSHOT</version>
|
2007-07-03 18:42:39 -04:00
|
|
|
|
|
|
|
<properties>
|
2023-04-24 03:16:57 -04:00
|
|
|
<java.class.version>11</java.class.version>
|
|
|
|
<java.testclass.version>11</java.testclass.version>
|
2013-10-15 16:32:07 -04:00
|
|
|
|
2019-01-14 03:02:44 -05:00
|
|
|
<doclint>none</doclint>
|
2018-12-07 10:49:44 -05:00
|
|
|
|
2010-07-28 15:24:33 -04:00
|
|
|
<openjpa.version>${project.version}</openjpa.version>
|
2010-03-16 14:44:11 -04:00
|
|
|
<openjpa.Log>DefaultLevel=INFO</openjpa.Log>
|
2010-02-23 12:27:27 -05:00
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
2018-12-03 06:20:37 -05:00
|
|
|
<checkstyle.suppressions.location>openjpa-project${file.separator}suppressions.xml</checkstyle.suppressions.location>
|
2018-06-28 11:08:58 -04:00
|
|
|
|
2012-02-15 10:34:23 -05:00
|
|
|
<site.deploy.url>scp://people.apache.org/home/${site.deploy.user.name}/public_html/openjpa/${project.version}/staging-site</site.deploy.url>
|
2010-02-23 12:27:27 -05:00
|
|
|
<!-- the test settings can be overridden my specific profiles -->
|
2009-06-29 14:54:32 -04:00
|
|
|
<test.jvm.maxheapsize>1024m</test.jvm.maxheapsize>
|
2016-09-20 02:30:42 -04:00
|
|
|
<test.jvm.arguments>-Xmx${test.jvm.maxheapsize} -XX:+HeapDumpOnOutOfMemoryError</test.jvm.arguments>
|
2009-06-29 14:54:32 -04:00
|
|
|
<surefire.jvm.args>${test.jvm.arguments}</surefire.jvm.args>
|
2010-09-29 13:12:49 -04:00
|
|
|
<!-- Setting for openjpa.DynamicEnhancementAgent usage -->
|
2010-10-13 16:07:06 -04:00
|
|
|
<openjpa.DynamicEnhancementAgent>false</openjpa.DynamicEnhancementAgent>
|
2010-09-29 13:12:49 -04:00
|
|
|
<!-- Commons DBCP settings passed in as openjpa.ConnectionProperties -->
|
2018-11-16 01:48:40 -05:00
|
|
|
<dbcp.maxTotal>10</dbcp.maxTotal>
|
2010-02-23 12:27:27 -05:00
|
|
|
<dbcp.maxIdle>5</dbcp.maxIdle>
|
|
|
|
<dbcp.minIdle>2</dbcp.minIdle>
|
|
|
|
<dbcp.maxWait>10000</dbcp.maxWait>
|
2018-11-16 01:48:40 -05:00
|
|
|
<dbcp.args>MaxTotal=${dbcp.maxTotal},MaxIdle=${dbcp.maxIdle},MinIdle=${dbcp.minIdle},MaxWait=${dbcp.maxWait}</dbcp.args>
|
2010-02-23 12:27:27 -05:00
|
|
|
<derby.locks.waitTimeout>10</derby.locks.waitTimeout>
|
|
|
|
<derby.locks.deadlockTimeout>5</derby.locks.deadlockTimeout>
|
|
|
|
<!-- Testcase @AllowFailure options: ignore = silently skip test,
|
|
|
|
log = execute test and log results but don't fail the test,
|
|
|
|
anything else allows the test to execute normally
|
|
|
|
-->
|
|
|
|
<tests.openjpa.allowfailure>ignore</tests.openjpa.allowfailure>
|
2021-04-09 08:22:53 -04:00
|
|
|
|
|
|
|
<!-- By default we use DBCP2 via AutoDriverDataSource -->
|
|
|
|
<tests.openjpa.driverDataSource>dbcp</tests.openjpa.driverDataSource>
|
|
|
|
|
2010-08-26 13:53:22 -04:00
|
|
|
<!--turn on sources.jar generation by setting to verify and true -->
|
|
|
|
<createSource>none</createSource>
|
|
|
|
<createSources>false</createSources>
|
2010-02-23 12:27:27 -05:00
|
|
|
<!-- common JDBC driver versions -->
|
2023-04-24 03:16:57 -04:00
|
|
|
<derby.version>10.15.2.0</derby.version>
|
2021-04-04 07:51:03 -04:00
|
|
|
<hsqldb.version>2.5.1</hsqldb.version>
|
2022-09-23 00:10:44 -04:00
|
|
|
<mysql.connector.version>5.1.49</mysql.connector.version>
|
2021-04-03 02:42:28 -04:00
|
|
|
<mariadb.connector.version>2.7.2</mariadb.connector.version>
|
2022-11-23 23:24:21 -05:00
|
|
|
<postgresql.connector.version>42.5.1</postgresql.connector.version>
|
2022-09-23 00:10:44 -04:00
|
|
|
<mssql.connector.version>11.2.1.jre8</mssql.connector.version>
|
2018-11-03 17:54:12 -04:00
|
|
|
|
2010-07-20 15:17:57 -04:00
|
|
|
<!-- other common versions -->
|
2022-11-03 06:46:07 -04:00
|
|
|
<kubernetes-client.version>6.2.0</kubernetes-client.version>
|
2018-10-18 01:38:31 -04:00
|
|
|
<slf4j.version>1.7.23</slf4j.version>
|
2012-02-14 10:37:52 -05:00
|
|
|
<!-- Compile Java source/target class level -->
|
2013-10-15 16:32:07 -04:00
|
|
|
<compile.class.source>${java.class.version}</compile.class.source>
|
|
|
|
<compile.class.target>${java.class.version}</compile.class.target>
|
|
|
|
<compile.testclass.source>${java.testclass.version}</compile.testclass.source>
|
|
|
|
<compile.testclass.target>${java.testclass.version}</compile.testclass.target>
|
2015-04-05 14:20:23 -04:00
|
|
|
|
2018-10-18 01:38:31 -04:00
|
|
|
<maven.javadoc.version>3.0.1</maven.javadoc.version>
|
2018-06-08 16:34:24 -04:00
|
|
|
<javadoc.additionalparam />
|
2022-11-03 06:46:07 -04:00
|
|
|
<maven.surefire.version>3.0.0-M7</maven.surefire.version>
|
2016-10-27 09:15:29 -04:00
|
|
|
|
2023-05-16 03:28:09 -04:00
|
|
|
<xbean.version>4.22</xbean.version>
|
2023-04-24 03:16:57 -04:00
|
|
|
<bval.version>3.0.0-SNAPSHOT</bval.version>
|
2022-09-23 00:20:13 -04:00
|
|
|
<log4j2.version>2.19.0</log4j2.version>
|
2022-09-23 00:24:42 -04:00
|
|
|
<ant.version>1.10.12</ant.version>
|
2020-12-01 05:35:29 -05:00
|
|
|
|
2018-10-18 01:38:31 -04:00
|
|
|
<jmock.version>2.9.0</jmock.version>
|
2021-06-16 06:25:45 -04:00
|
|
|
<dbcp2.version>2.8.0</dbcp2.version>
|
2023-04-24 03:16:57 -04:00
|
|
|
<pool2.version>2.9.0</pool2.version>
|
|
|
|
|
|
|
|
<jakarta.annotation-api.version>2.1.1</jakarta.annotation-api.version>
|
|
|
|
<jakarta.persistence-api.version>3.0.0</jakarta.persistence-api.version>
|
|
|
|
<jakarta.transaction-api.version>2.0.1</jakarta.transaction-api.version>
|
|
|
|
<jakarta.validation-api.version>3.0.2</jakarta.validation-api.version>
|
|
|
|
<jakarta.jms-api.version>3.1.0</jakarta.jms-api.version>
|
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
</properties>
|
|
|
|
|
2010-08-25 13:46:12 -04:00
|
|
|
<licenses>
|
|
|
|
<license>
|
2019-05-15 04:50:42 -04:00
|
|
|
<name>Apache License, Version 2.0</name>
|
2010-08-25 13:46:12 -04:00
|
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
|
|
<distribution>repo</distribution>
|
|
|
|
</license>
|
|
|
|
</licenses>
|
|
|
|
|
|
|
|
<organization>
|
|
|
|
<name>Apache Software Foundation</name>
|
|
|
|
<url>http://www.apache.org</url>
|
|
|
|
</organization>
|
|
|
|
|
2007-08-14 18:39:55 -04:00
|
|
|
<url>http://openjpa.apache.org</url>
|
2010-02-18 14:32:10 -05:00
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<issueManagement>
|
|
|
|
<system>jira</system>
|
2019-05-15 04:50:42 -04:00
|
|
|
<url>https://issues.apache.org/jira/browse/OPENJPA</url>
|
2007-07-03 18:42:39 -04:00
|
|
|
</issueManagement>
|
2010-02-18 14:32:10 -05:00
|
|
|
|
2010-08-25 13:46:12 -04:00
|
|
|
<ciManagement>
|
2012-10-02 09:08:17 -04:00
|
|
|
<system>Jenkins</system>
|
|
|
|
<url>https://builds.apache.org/job/OpenJPA-trunk-deploy/</url>
|
2010-08-25 13:46:12 -04:00
|
|
|
</ciManagement>
|
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<inceptionYear>2006</inceptionYear>
|
2010-02-18 14:32:10 -05:00
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<mailingLists>
|
|
|
|
<mailingList>
|
|
|
|
<name>OpenJPA Developer List</name>
|
2007-08-31 17:28:04 -04:00
|
|
|
<subscribe>dev-subscribe@openjpa.apache.org</subscribe>
|
|
|
|
<unsubscribe>dev-unsubscribe@openjpa.apache.org</unsubscribe>
|
2007-08-14 18:39:55 -04:00
|
|
|
<post>dev@openjpa.apache.org</post>
|
2019-05-15 04:50:42 -04:00
|
|
|
<archive>https://lists.apache.org/list.html?dev@openjpa.apache.org</archive>
|
2007-08-14 18:39:55 -04:00
|
|
|
</mailingList>
|
|
|
|
<mailingList>
|
|
|
|
<name>OpenJPA Users List</name>
|
2007-08-31 17:28:04 -04:00
|
|
|
<subscribe>users-subscribe@openjpa.apache.org</subscribe>
|
|
|
|
<unsubscribe>users-unsubscribe@openjpa.apache.org</unsubscribe>
|
2007-08-14 18:39:55 -04:00
|
|
|
<post>users@openjpa.apache.org</post>
|
2019-05-15 04:50:42 -04:00
|
|
|
<archive>https://lists.apache.org/list.html?users@openjpa.apache.org</archive>
|
2007-07-03 18:42:39 -04:00
|
|
|
</mailingList>
|
|
|
|
<mailingList>
|
|
|
|
<name>OpenJPA Commits List</name>
|
2007-08-14 18:39:55 -04:00
|
|
|
<subscribe>commits-subscribe@openjpa.apache.org</subscribe>
|
|
|
|
<unsubscribe>commits-unsubscribe@openjpa.apache.org</unsubscribe>
|
|
|
|
<post>commits@openjpa.apache.org</post>
|
2019-05-15 04:50:42 -04:00
|
|
|
<archive>https://lists.apache.org/list.html?commits@openjpa.apache.org</archive>
|
2007-07-03 18:42:39 -04:00
|
|
|
</mailingList>
|
|
|
|
</mailingLists>
|
2010-02-18 14:32:10 -05:00
|
|
|
|
|
|
|
<distributionManagement>
|
|
|
|
<site>
|
|
|
|
<id>people.apache.org</id>
|
2010-07-28 15:24:33 -04:00
|
|
|
<url>${site.deploy.url}</url>
|
2010-02-18 14:32:10 -05:00
|
|
|
</site>
|
|
|
|
</distributionManagement>
|
|
|
|
|
|
|
|
<scm>
|
2018-11-10 15:50:43 -05:00
|
|
|
<connection>scm:git:https://gitbox.apache.org/repos/asf/openjpa.git</connection>
|
|
|
|
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/openjpa.git</developerConnection>
|
|
|
|
<url>https://gitbox.apache.org/repos/asf/openjpa.git</url>
|
2022-03-16 04:25:57 -04:00
|
|
|
<tag>HEAD</tag>
|
2019-04-10 14:13:04 -04:00
|
|
|
</scm>
|
2010-02-18 14:32:10 -05:00
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<modules>
|
|
|
|
<module>openjpa-lib</module>
|
|
|
|
<module>openjpa-kernel</module>
|
|
|
|
<module>openjpa-jdbc</module>
|
2008-03-24 23:37:56 -04:00
|
|
|
<module>openjpa-persistence</module>
|
|
|
|
<module>openjpa-persistence-jdbc</module>
|
2009-08-14 15:30:05 -04:00
|
|
|
<module>openjpa-persistence-locking</module>
|
2008-02-15 11:10:09 -05:00
|
|
|
<module>openjpa-xmlstore</module>
|
|
|
|
<module>openjpa-slice</module>
|
2010-12-09 17:05:33 -05:00
|
|
|
<module>openjpa-jest</module>
|
2020-01-21 02:32:10 -05:00
|
|
|
<module>openjpa-kubernetes</module>
|
2009-05-11 11:21:52 -04:00
|
|
|
<module>openjpa</module>
|
2007-07-03 18:42:39 -04:00
|
|
|
<module>openjpa-project</module>
|
2008-03-24 23:37:56 -04:00
|
|
|
<module>openjpa-examples</module>
|
2007-07-03 18:42:39 -04:00
|
|
|
<module>openjpa-integration</module>
|
2009-05-11 11:21:52 -04:00
|
|
|
<module>openjpa-all</module>
|
2011-04-07 21:59:02 -04:00
|
|
|
<module>openjpa-tools</module>
|
2016-10-06 04:33:09 -04:00
|
|
|
<module>openjpa-features</module>
|
2020-03-17 12:17:19 -04:00
|
|
|
<module>openjpa-junit5</module>
|
2007-07-03 18:42:39 -04:00
|
|
|
</modules>
|
2010-01-20 15:53:57 -05:00
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<profiles>
|
2010-01-20 15:53:57 -05:00
|
|
|
<!-- ================ -->
|
|
|
|
<!-- Build Profiles -->
|
|
|
|
<!-- ================ -->
|
2010-08-19 13:31:55 -04:00
|
|
|
|
2010-08-25 13:46:12 -04:00
|
|
|
<!-- Override some release settings inherited from apache-7.pom -->
|
2007-07-03 18:42:39 -04:00
|
|
|
<profile>
|
2010-07-28 15:24:33 -04:00
|
|
|
<id>apache-release</id>
|
2010-08-26 13:53:22 -04:00
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>performRelease</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<!--turn on sources.jar generation -->
|
|
|
|
<createSource>verify</createSource>
|
|
|
|
<createSources>true</createSources>
|
|
|
|
</properties>
|
2010-08-25 13:46:12 -04:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.rat</groupId>
|
|
|
|
<artifactId>apache-rat-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<excludeSubProjects>false</excludeSubProjects>
|
|
|
|
<numUnapprovedLicenses>0</numUnapprovedLicenses>
|
|
|
|
<excludes>
|
|
|
|
<!-- comments are usupported in services files -->
|
2023-04-24 03:16:57 -04:00
|
|
|
<exclude>**/jakarta.persistencespi.PersistenceProvider</exclude>
|
2010-08-25 13:46:12 -04:00
|
|
|
<exclude>**/javax.annotation.processing.Processor</exclude>
|
|
|
|
<!-- comments are usupported by our rsrc parser -->
|
|
|
|
<exclude>**/*.rsrc</exclude>
|
|
|
|
<!-- comments are usupported in these files -->
|
|
|
|
<exclude>**/org.apache.openjpa.revision.properties</exclude>
|
|
|
|
<exclude>scripts/*.list</exclude>
|
|
|
|
<exclude>scripts/*.options</exclude>
|
|
|
|
<exclude>scripts/*.dict</exclude>
|
|
|
|
<!-- generated content -->
|
|
|
|
<exclude>**/.*/**</exclude>
|
|
|
|
<exclude>**/target/**/*</exclude>
|
|
|
|
<exclude>**/dependency-reduced-pom.xml</exclude>
|
|
|
|
<exclude>**/*.log</exclude>
|
|
|
|
<exclude>**/maven-eclipse.xml</exclude>
|
|
|
|
<exclude>**/rat.txt</exclude>
|
|
|
|
<exclude>release.properties</exclude>
|
|
|
|
<exclude>DEPENDENCIES</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2007-07-03 18:42:39 -04:00
|
|
|
</profile>
|
|
|
|
|
2010-01-28 10:40:10 -05:00
|
|
|
<profile>
|
|
|
|
<id>sign-release</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>sign-release</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
2016-05-10 17:36:15 -04:00
|
|
|
<version>1.6</version>
|
2010-01-28 10:40:10 -05:00
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<!--
|
|
|
|
Generate the documentation using the YDoc UML generation plugin.
|
|
|
|
Assumes you have the YDoc libraries locally, as well as a valid
|
|
|
|
YDoc license file. Example usage for building the docs:
|
|
|
|
|
|
|
|
mvn process-classes -Pydoc-profile,javadoc-profile -Dydoc.home=${HOME}/.m2/privaterepos/ydoc/ydoc-2.2_04-jdk1.5 -Dydoc.license=${HOME}/.m2/privaterepos/ydoc/ydoc.license
|
|
|
|
-->
|
|
|
|
<profile>
|
|
|
|
<id>ydoc-profile</id>
|
|
|
|
<properties>
|
|
|
|
<javadoc.additionalparam>
|
|
|
|
-generic
|
|
|
|
-umlautogen
|
|
|
|
-tag param
|
|
|
|
-tag return
|
|
|
|
-tag see
|
|
|
|
-ytag y.uml
|
|
|
|
-license ${ydoc.license}
|
|
|
|
-filter ydoc.filters.ExcludeFilter
|
|
|
|
-filterpath ${ydoc.home}/lib/ydoc.jar
|
|
|
|
-doclet ydoc.doclets.YStandard
|
|
|
|
-docletpath ${ydoc.home}/lib/ydoc.jar${path.separator}${ydoc.home}/lib/class2svg.jar${path.separator}${ydoc.home}/resources
|
|
|
|
${ydoc.params}
|
|
|
|
</javadoc.additionalparam>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
2010-08-05 13:10:20 -04:00
|
|
|
<!--
|
2007-07-03 18:42:39 -04:00
|
|
|
Javadoc profile. Docs can be built by running:
|
2015-06-02 09:09:51 -04:00
|
|
|
mvn process-classes -Dtest=false -Pjavadoc-profile
|
2010-08-05 13:10:20 -04:00
|
|
|
-->
|
2007-07-03 18:42:39 -04:00
|
|
|
<id>javadoc-profile</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
2015-04-06 16:53:21 -04:00
|
|
|
<version>${maven.javadoc.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
|
|
|
<additionalparam>
|
2018-06-08 15:54:43 -04:00
|
|
|
${javadoc.additionalparam} -Xdoclint:none
|
2015-04-06 16:53:21 -04:00
|
|
|
</additionalparam>
|
|
|
|
<subpackages>org.apache.openjpa</subpackages>
|
|
|
|
<verbose>false</verbose>
|
|
|
|
<maxmemory>1024m</maxmemory>
|
|
|
|
<links>
|
2019-05-15 04:50:42 -04:00
|
|
|
<link>https://download.oracle.com/javase/8/docs/api/</link>
|
|
|
|
<link>https://download.oracle.com/javaee/8/api/</link>
|
2015-04-06 16:53:21 -04:00
|
|
|
</links>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-javadoc</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>aggregate-jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>aggregate</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2007-07-03 18:42:39 -04:00
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>builddocs</name>
|
|
|
|
<value>true</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
</profile>
|
|
|
|
|
2010-02-23 16:55:49 -05:00
|
|
|
<!-- =============== -->
|
|
|
|
<!-- Test Profiles -->
|
|
|
|
<!-- =============== -->
|
|
|
|
<profile>
|
|
|
|
<id>debug</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
2016-09-20 02:30:42 -04:00
|
|
|
<test.jvm.arguments>-Xmx${test.jvm.maxheapsize} -agentlib:jdwp=transport=dt_socket,server=y,address=8000</test.jvm.arguments>
|
2010-02-23 16:55:49 -05:00
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<profile>
|
|
|
|
<id>enable-security</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<test.env>-Dtest.basedir=${basedir}/..</test.env>
|
|
|
|
<policy.file>${basedir}/../openjpa-persistence-jdbc/src/test/resources/j2.security.test.policy</policy.file>
|
2009-06-29 14:54:32 -04:00
|
|
|
<surefire.jvm.args>-Djava.security.manager -Djava.security.policy=${policy.file} ${test.env} ${test.jvm.arguments}</surefire.jvm.args>
|
2007-07-03 18:42:39 -04:00
|
|
|
</properties>
|
|
|
|
</profile>
|
2009-06-29 14:54:32 -04:00
|
|
|
|
2009-05-29 16:06:29 -04:00
|
|
|
<profile>
|
|
|
|
<id>test-dynamic-enhancer</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<test.env>-Dtest.basedir=${basedir}/..</test.env>
|
|
|
|
<policy.file>${basedir}/../openjpa-persistence-jdbc/src/test/resources/j2.security.test.policy</policy.file>
|
2009-06-29 14:54:32 -04:00
|
|
|
<surefire.jvm.args>-Djava.security.manager -Djava.security.policy=${policy.file} ${test.env} ${test.jvm.arguments}</surefire.jvm.args>
|
2009-05-29 16:06:29 -04:00
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
2015-06-02 14:04:26 -04:00
|
|
|
<version>${maven.surefire.version}</version>
|
2009-05-29 16:06:29 -04:00
|
|
|
<configuration>
|
2009-06-29 14:54:32 -04:00
|
|
|
<argLine>${surefire.jvm.args}</argLine>
|
2009-05-29 16:06:29 -04:00
|
|
|
<includes>
|
2010-02-24 16:04:42 -05:00
|
|
|
<include />
|
2009-05-29 16:06:29 -04:00
|
|
|
</includes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2007-07-03 18:42:39 -04:00
|
|
|
|
2018-10-23 04:33:25 -04:00
|
|
|
<!-- =================== -->
|
|
|
|
<!-- Database Profiles -->
|
|
|
|
<!-- =================== -->
|
|
|
|
|
2010-02-23 16:55:49 -05:00
|
|
|
<!-- Default profile for testing with an embedded Apache Derby DB -->
|
|
|
|
<profile>
|
|
|
|
<!--
|
|
|
|
Optionally, you can override the following properties:
|
|
|
|
-Dderby.version=10.2.2.0
|
|
|
|
-->
|
|
|
|
<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>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2023-04-24 03:16:57 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.derby</groupId>
|
|
|
|
<artifactId>derbytools</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2010-02-23 16:55:49 -05:00
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>org.apache.derby.jdbc.EmbeddedDriver</connection.driver.name>
|
|
|
|
<connection.url>jdbc:derby:target/database/openjpa-derby-database;create=true</connection.url>
|
|
|
|
<connection.username />
|
|
|
|
<connection.password />
|
2011-01-24 15:43:57 -05:00
|
|
|
<!-- Tests are much faster without shutting derby down at the end of each test. -->
|
|
|
|
<jdbc.DBDictionary>ShutdownOnClose=false</jdbc.DBDictionary>
|
2013-02-06 17:30:09 -05:00
|
|
|
<!-- TCK specific properties -->
|
|
|
|
<tck.db.name>derby</tck.db.name>
|
2009-06-29 14:54:32 -04:00
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
2019-01-30 16:33:08 -05:00
|
|
|
<!-- profile for testing with an embedded h2 DB -->
|
|
|
|
<profile>
|
|
|
|
<id>test-h2</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-h2</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
2021-12-15 07:24:19 -05:00
|
|
|
<h2.version>1.4.200</h2.version>
|
|
|
|
<connection.driver.name>org.h2.Driver</connection.driver.name>
|
|
|
|
<connection.url>jdbc:h2:./target/database/openjpa-h2-database</connection.url>
|
|
|
|
<connection.username />
|
|
|
|
<connection.password />
|
|
|
|
<!-- TCK specific properties -->
|
|
|
|
<tck.db.name>h2mem</tck.db.name>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.h2database</groupId>
|
|
|
|
<artifactId>h2</artifactId>
|
|
|
|
<version>${h2.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!-- profile for testing with an embedded h2 2.x DB -->
|
|
|
|
<profile>
|
|
|
|
<id>test-h2-2</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-h2-2</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
2022-09-23 00:10:44 -04:00
|
|
|
<h2.version>2.1.214</h2.version>
|
2019-01-30 16:33:08 -05:00
|
|
|
<connection.driver.name>org.h2.Driver</connection.driver.name>
|
2022-09-23 00:10:44 -04:00
|
|
|
<connection.url>jdbc:h2:./target/database/openjpa-h2-database;MODE=STRICT</connection.url>
|
2019-01-30 16:33:08 -05:00
|
|
|
<connection.username />
|
|
|
|
<connection.password />
|
|
|
|
<!-- TCK specific properties -->
|
|
|
|
<tck.db.name>h2mem</tck.db.name>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.h2database</groupId>
|
|
|
|
<artifactId>h2</artifactId>
|
|
|
|
<version>${h2.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</profile>
|
|
|
|
|
2010-02-23 16:55:49 -05:00
|
|
|
<!-- Profile for testing with an In-Memory Apache Derby DB -->
|
|
|
|
<profile>
|
|
|
|
<!--
|
|
|
|
Optionally, you can override the following properties:
|
|
|
|
-Dderby.version=10.5.3.0_1
|
|
|
|
-->
|
|
|
|
<id>test-derbymem</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-derbymem</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.derby</groupId>
|
|
|
|
<artifactId>derby</artifactId>
|
|
|
|
<version>${derby.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2023-04-24 03:16:57 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.derby</groupId>
|
|
|
|
<artifactId>derbytools</artifactId>
|
|
|
|
<version>${derby.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2010-02-23 16:55:49 -05:00
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>org.apache.derby.jdbc.EmbeddedDriver</connection.driver.name>
|
|
|
|
<connection.url>jdbc:derby:memory:openjpa-derby-inmem-database;create=true</connection.url>
|
|
|
|
<connection.username />
|
|
|
|
<connection.password />
|
2011-01-24 15:43:57 -05:00
|
|
|
<!-- Tests are much faster without shutting derby down at the end of each test. -->
|
|
|
|
<jdbc.DBDictionary>ShutdownOnClose=false</jdbc.DBDictionary>
|
2010-02-23 16:55:49 -05:00
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!-- Profile for testing with Apache Derby DB 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>
|
|
|
|
<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>
|
2018-09-24 02:41:20 -04:00
|
|
|
<!-- Note: commons-dbcp2 requires dummy values for uid/pwd -->
|
2010-02-23 16:55:49 -05:00
|
|
|
<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>
|
2011-01-24 15:43:57 -05:00
|
|
|
<jdbc.DBDictionary />
|
2010-02-23 16:55:49 -05:00
|
|
|
</properties>
|
|
|
|
</profile>
|
2018-10-23 04:33:25 -04:00
|
|
|
|
|
|
|
<!-- Profile for testing with HSQL DB -->
|
|
|
|
<profile>
|
|
|
|
<id>test-hsqldb</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-hsqldb</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.hsqldb</groupId>
|
|
|
|
<artifactId>hsqldb</artifactId>
|
|
|
|
<version>${hsqldb.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>org.hsqldb.jdbcDriver</connection.driver.name>
|
|
|
|
<!--<connection.url>jdbc:hsqldb:target/database/openjpa-hsqldb-database;create=true</connection.url>-->
|
2019-02-07 03:55:56 -05:00
|
|
|
<connection.url>jdbc:hsqldb:mem:openjpa22-hsqldb-database</connection.url>
|
2018-10-23 04:33:25 -04:00
|
|
|
<connection.username>sa</connection.username>
|
|
|
|
<connection.password />
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</properties>
|
|
|
|
</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>
|
2018-10-31 15:51:31 -04:00
|
|
|
<version>${mysql.connector.version}</version>
|
2018-10-23 04:33:25 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>com.mysql.jdbc.Driver</connection.driver.name>
|
|
|
|
<!--<connection.url>jdbc:mysql://localhost/OPENJPA</connection.url>-->
|
|
|
|
<connection.url>${openjpa.mysql.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.mysql.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.mysql.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
<!-- DBCP overrides for MySQL testing -->
|
2019-01-02 05:17:38 -05:00
|
|
|
<dbcp.maxIdle>5</dbcp.maxIdle>
|
2018-10-23 04:33:25 -04:00
|
|
|
<dbcp.minIdle>0</dbcp.minIdle>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!-- Profile for testing with MySQL DB -->
|
|
|
|
<profile>
|
|
|
|
<id>test-mysql-docker</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-mysql-docker</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
2018-10-31 15:51:31 -04:00
|
|
|
<version>${mysql.connector.version}</version>
|
2018-10-23 04:33:25 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>com.mysql.jdbc.Driver</connection.driver.name>
|
|
|
|
|
|
|
|
<!-- default settings for local docker -->
|
|
|
|
<docker.external.mysql.port>3306</docker.external.mysql.port>
|
|
|
|
<openjpa.mysql.dbname>openjpatst</openjpa.mysql.dbname>
|
2018-10-30 08:45:57 -04:00
|
|
|
<openjpa.mysql.url>jdbc:mysql://localhost:${docker.external.mysql.port}/${openjpa.mysql.dbname}?useSSL=false</openjpa.mysql.url>
|
2018-10-23 04:33:25 -04:00
|
|
|
<openjpa.mysql.username>openjpatst</openjpa.mysql.username>
|
|
|
|
<openjpa.mysql.password>openjpatst</openjpa.mysql.password>
|
|
|
|
|
|
|
|
<!--<connection.url>jdbc:mysql://localhost/OPENJPA</connection.url>-->
|
|
|
|
<connection.url>${openjpa.mysql.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.mysql.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.mysql.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
|
|
|
|
<!-- DBCP overrides for MySQL testing -->
|
2019-01-02 05:17:38 -05:00
|
|
|
<dbcp.maxIdle>5</dbcp.maxIdle>
|
2018-10-23 04:33:25 -04:00
|
|
|
<dbcp.minIdle>0</dbcp.minIdle>
|
2018-10-28 08:05:08 -04:00
|
|
|
|
|
|
|
<mysql.server.version>5.7</mysql.server.version>
|
2018-10-23 04:33:25 -04:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<images>
|
|
|
|
<image>
|
2018-10-28 08:05:08 -04:00
|
|
|
<name>mysql/mysql-server:${mysql.server.version}</name>
|
2018-10-23 04:33:25 -04:00
|
|
|
<run>
|
|
|
|
<env>
|
|
|
|
<MYSQL_DATABASE>${openjpa.mysql.dbname}</MYSQL_DATABASE>
|
|
|
|
<MYSQL_USER>${connection.username}</MYSQL_USER>
|
|
|
|
<MYSQL_PASSWORD>${connection.password}</MYSQL_PASSWORD>
|
|
|
|
</env>
|
|
|
|
<ports>
|
|
|
|
<port>${docker.external.mysql.port}:3306</port>
|
|
|
|
</ports>
|
|
|
|
</run>
|
|
|
|
</image>
|
|
|
|
</images>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!-- Profile for testing with MariaDB DB -->
|
|
|
|
<profile>
|
|
|
|
<id>test-mariadb</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-mariadb</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
2018-11-16 07:12:23 -05:00
|
|
|
<groupId>org.mariadb.jdbc</groupId>
|
|
|
|
<artifactId>mariadb-java-client</artifactId>
|
|
|
|
<version>${mariadb.connector.version}</version>
|
2018-10-23 04:33:25 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>org.mariadb.jdbc.Driver</connection.driver.name>
|
|
|
|
<!--<connection.url>jdbc:mysql://localhost/OPENJPA</connection.url>-->
|
|
|
|
<connection.url>${openjpa.mariadb.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.mariadb.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.mariadb.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
<!-- DBCP overrides for MariaDB testing -->
|
2019-01-02 05:17:38 -05:00
|
|
|
<dbcp.maxIdle>5</dbcp.maxIdle>
|
2018-10-23 04:33:25 -04:00
|
|
|
<dbcp.minIdle>0</dbcp.minIdle>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
2018-11-16 07:12:23 -05:00
|
|
|
|
|
|
|
<!-- Profile for testing with MariaDB DB on Docker-->
|
|
|
|
<profile>
|
|
|
|
<id>test-mariadb-docker</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-mariadb-docker</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mariadb.jdbc</groupId>
|
|
|
|
<artifactId>mariadb-java-client</artifactId>
|
|
|
|
<version>${mariadb.connector.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>org.mariadb.jdbc.Driver</connection.driver.name>
|
|
|
|
|
|
|
|
<!-- default settings for local docker -->
|
|
|
|
<docker.external.mariadb.port>3306</docker.external.mariadb.port>
|
|
|
|
<openjpa.mariadb.dbname>openjpatst</openjpa.mariadb.dbname>
|
|
|
|
<openjpa.mariadb.url>jdbc:mariadb://localhost:${docker.external.mariadb.port}/${openjpa.mariadb.dbname}</openjpa.mariadb.url>
|
|
|
|
<openjpa.mariadb.username>root</openjpa.mariadb.username>
|
|
|
|
<openjpa.mariadb.password>openjpatst</openjpa.mariadb.password>
|
|
|
|
|
|
|
|
<!--<connection.url>jdbc:mariadb://localhost/OPENJPA</connection.url>-->
|
|
|
|
<connection.url>${openjpa.mariadb.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.mariadb.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.mariadb.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
|
|
|
|
<!-- DBCP overrides for mariadb testing -->
|
2019-01-02 05:17:38 -05:00
|
|
|
<dbcp.maxIdle>5</dbcp.maxIdle>
|
2018-11-16 07:12:23 -05:00
|
|
|
<dbcp.minIdle>0</dbcp.minIdle>
|
|
|
|
|
2021-04-03 02:42:28 -04:00
|
|
|
<mariadb.server.version>10.5</mariadb.server.version>
|
2018-11-16 07:12:23 -05:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<images>
|
|
|
|
<image>
|
|
|
|
<name>mariadb/server:${mariadb.server.version}</name>
|
|
|
|
<run>
|
|
|
|
<env>
|
|
|
|
<!-- mariadb still uses the old mysql env variables -->
|
|
|
|
<MYSQL_DATABASE>${openjpa.mariadb.dbname}</MYSQL_DATABASE>
|
|
|
|
<MYSQL_ROOT_PASSWORD>${connection.password}</MYSQL_ROOT_PASSWORD>
|
|
|
|
|
|
|
|
<!-- seems to get ignored -->
|
|
|
|
<MYSQL_USER>${connection.username}</MYSQL_USER>
|
|
|
|
</env>
|
|
|
|
<ports>
|
|
|
|
<port>${docker.external.mariadb.port}:3306</port>
|
|
|
|
</ports>
|
|
|
|
</run>
|
|
|
|
</image>
|
|
|
|
</images>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
</profile>
|
2018-10-23 04:33:25 -04:00
|
|
|
|
|
|
|
<!-- Profile for testing with PostgreSQL DB -->
|
|
|
|
<profile>
|
|
|
|
<id>test-postgresql</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-postgresql</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
2018-11-03 17:54:12 -04:00
|
|
|
<groupId>org.postgresql</groupId>
|
2018-10-23 04:33:25 -04:00
|
|
|
<artifactId>postgresql</artifactId>
|
2018-11-03 17:54:12 -04:00
|
|
|
<version>${postgresql.connector.version}</version>
|
2018-10-23 04:33:25 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>org.postgresql.Driver</connection.driver.name>
|
|
|
|
<!--<connection.url>jdbc:postgresql://localhost/openjpa</connection.url>-->
|
|
|
|
<connection.url>${openjpa.postgresql.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.postgresql.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.postgresql.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
<!-- DBCP overrides -->
|
2019-01-02 05:17:38 -05:00
|
|
|
<dbcp.maxIdle>5</dbcp.maxIdle>
|
2018-10-23 04:33:25 -04:00
|
|
|
<dbcp.minIdle>0</dbcp.minIdle>
|
2018-11-16 01:48:40 -05:00
|
|
|
<dbcp.maxTotal>20</dbcp.maxTotal>
|
2018-10-23 04:33:25 -04:00
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
2018-11-03 17:54:12 -04:00
|
|
|
<!-- Profile for testing with PostgreSQL DB via Docker -->
|
|
|
|
<profile>
|
|
|
|
<id>test-postgresql-docker</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-postgresql-docker</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.postgresql</groupId>
|
|
|
|
<artifactId>postgresql</artifactId>
|
|
|
|
<version>${postgresql.connector.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>org.postgresql.Driver</connection.driver.name>
|
|
|
|
|
|
|
|
<!-- default settings for local docker -->
|
|
|
|
<docker.external.postgresql.port>5432</docker.external.postgresql.port>
|
|
|
|
<openjpa.postgresql.dbname>openjpatst</openjpa.postgresql.dbname>
|
|
|
|
<openjpa.postgresql.username>postgres</openjpa.postgresql.username>
|
|
|
|
<openjpa.postgresql.password>postgres</openjpa.postgresql.password>
|
2019-01-02 18:17:03 -05:00
|
|
|
<openjpa.postgresql.url>jdbc:postgresql://localhost:${docker.external.postgresql.port}/${openjpa.postgresql.dbname}</openjpa.postgresql.url>
|
2018-11-03 17:54:12 -04:00
|
|
|
|
|
|
|
<!--<connection.url>jdbc:postgresql://localhost/openjpa</connection.url>-->
|
|
|
|
<connection.url>${openjpa.postgresql.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.postgresql.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.postgresql.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
|
|
|
|
<!-- DBCP overrides -->
|
2019-01-02 18:17:03 -05:00
|
|
|
<dbcp.maxIdle>20</dbcp.maxIdle>
|
2018-11-03 17:54:12 -04:00
|
|
|
<dbcp.minIdle>0</dbcp.minIdle>
|
2019-01-02 07:18:52 -05:00
|
|
|
<dbcp.maxTotal>20</dbcp.maxTotal>
|
2018-11-03 17:54:12 -04:00
|
|
|
|
|
|
|
<postgresql.server.version>11</postgresql.server.version>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<images>
|
|
|
|
<image>
|
|
|
|
<name>postgres:${postgresql.server.version}</name>
|
|
|
|
<run>
|
|
|
|
<env>
|
|
|
|
<PGDATA>/pg</PGDATA>
|
|
|
|
<POSTGRES_DB>${openjpa.postgresql.dbname}</POSTGRES_DB>
|
|
|
|
<POSTGRES_USER>${connection.username}</POSTGRES_USER>
|
|
|
|
<POSTGRES_PASSWORD>${connection.password}</POSTGRES_PASSWORD>
|
|
|
|
</env>
|
|
|
|
<ports>
|
|
|
|
<port>${docker.external.postgresql.port}:5432</port>
|
|
|
|
</ports>
|
|
|
|
</run>
|
|
|
|
</image>
|
|
|
|
</images>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
</profile>
|
|
|
|
|
2018-10-23 04:33:25 -04:00
|
|
|
<!-- Profile for testing with SQLServer DB using MS JDBC driver -->
|
|
|
|
<profile>
|
|
|
|
<!--
|
|
|
|
Example MS SQL profile. You can use this profile if you:
|
|
|
|
1) have the MS SQL artifacts installed in a local repo and
|
|
|
|
supply the URL:
|
|
|
|
-Dmssql.maven.repo=http://my.local.repo
|
|
|
|
2) have a copy of the MS SQL JDBC driver from:
|
|
|
|
http://msdn.microsoft.com/en-us/data/aa937724.aspx
|
|
|
|
and run the following commands :
|
|
|
|
mvn install:install-file -Dfile=${path to sqljdbc.jar} \
|
|
|
|
-DgroupId=com.microsoft.sqlserver \
|
|
|
|
-DartifactId=sqljdbc \
|
|
|
|
-Dversion=2.0 \
|
|
|
|
-Dpackaging=jar
|
|
|
|
|
|
|
|
You must also set the following properties:
|
|
|
|
-Dopenjpa.mssql.url=jdbc:sqlserver://<HOST>:<PORT>;\
|
2018-10-28 08:07:42 -04:00
|
|
|
DataBaseName=<DBNAME>
|
2018-10-23 04:33:25 -04:00
|
|
|
-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>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-mssql</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${mssql.groupid}</groupId>
|
|
|
|
<artifactId>${mssql.artifactid}</artifactId>
|
|
|
|
<version>${mssql.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<mssql.maven.repo>http://not.real.repository</mssql.maven.repo>
|
|
|
|
<mssql.groupid>com.microsoft.sqlserver</mssql.groupid>
|
|
|
|
<mssql.artifactid>sqljdbc</mssql.artifactid>
|
|
|
|
<mssql.version>2.0</mssql.version>
|
|
|
|
<connection.driver.name>com.microsoft.sqlserver.jdbc.SQLServerDriver</connection.driver.name>
|
|
|
|
<!--<connection.url>jdbc:sqlserver://localhost/OPENJPA</connection.url>-->
|
|
|
|
<connection.url>${openjpa.mssql.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.mssql.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.mssql.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</properties>
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>mssql.repository</id>
|
|
|
|
<name>MSSQL Repository</name>
|
|
|
|
<url>${mssql.maven.repo}</url>
|
|
|
|
<layout>default</layout>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</snapshots>
|
|
|
|
<releases>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
<checksumPolicy>ignore</checksumPolicy>
|
|
|
|
</releases>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
</profile>
|
|
|
|
|
2019-02-07 03:32:31 -05:00
|
|
|
<!-- Profile for testing with Microsoft SQLServer DB via Docker -->
|
|
|
|
<profile>
|
|
|
|
<id>test-mssql-docker</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-mssql-docker</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.microsoft.sqlserver</groupId>
|
|
|
|
<artifactId>mssql-jdbc</artifactId>
|
|
|
|
<version>${mssql.connector.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>com.microsoft.sqlserver.jdbc.SQLServerDriver</connection.driver.name>
|
|
|
|
|
|
|
|
<!-- default settings for local docker -->
|
|
|
|
<docker.external.mssql.port>1433</docker.external.mssql.port>
|
|
|
|
<openjpa.mssql.dbname>openjpatst</openjpa.mssql.dbname>
|
|
|
|
<openjpa.mssql.username>SA</openjpa.mssql.username>
|
|
|
|
<openjpa.mssql.password>OpenJP8tst</openjpa.mssql.password>
|
2021-03-31 13:09:03 -04:00
|
|
|
<!--
|
|
|
|
* sendTimeAsDatetime=false is important to make SQLServer understand java.sql.Time parameters.
|
|
|
|
* Alternatively you can set the SQLServerDictionary parameter sendTimeAsString=true
|
|
|
|
-->
|
|
|
|
<openjpa.mssql.url>jdbc:sqlserver://localhost:${docker.external.mssql.port};sendTimeAsDatetime=false</openjpa.mssql.url>
|
2019-02-07 03:32:31 -05:00
|
|
|
|
|
|
|
<!--<connection.url>jdbc:postgresql://localhost/openjpa</connection.url>-->
|
|
|
|
<connection.url>${openjpa.mssql.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.mssql.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.mssql.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
|
|
|
|
<!-- DBCP overrides -->
|
|
|
|
<dbcp.maxIdle>20</dbcp.maxIdle>
|
|
|
|
<dbcp.minIdle>0</dbcp.minIdle>
|
|
|
|
<dbcp.maxTotal>20</dbcp.maxTotal>
|
|
|
|
|
|
|
|
<mssql.server.version>2017-CU12-ubuntu</mssql.server.version>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<images>
|
|
|
|
<image>
|
|
|
|
<name>mcr.microsoft.com/mssql/server:${mssql.server.version}</name>
|
|
|
|
<run>
|
|
|
|
<env>
|
|
|
|
<!-- For more info on the EULA see https://go.microsoft.com/fwlink/?LinkId=746388 -->
|
|
|
|
<ACCEPT_EULA>Y</ACCEPT_EULA>
|
|
|
|
<SA_PASSWORD>${connection.password}</SA_PASSWORD>
|
|
|
|
</env>
|
|
|
|
<ports>
|
|
|
|
<port>${docker.external.mssql.port}:1433</port>
|
|
|
|
</ports>
|
|
|
|
</run>
|
|
|
|
</image>
|
|
|
|
</images>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
</profile>
|
|
|
|
|
2018-10-23 04:33:25 -04:00
|
|
|
<!-- 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>${jtds.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<jtds.version>1.2</jtds.version>
|
|
|
|
<connection.driver.name>net.sourceforge.jtds.jdbc.Driver</connection.driver.name>
|
|
|
|
<!--<connection.url>jdbc:jtds:sqlserver://localhost:1433/OPENJPA</connection.url>-->
|
|
|
|
<connection.url>${openjpa.sqlserver.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.sqlserver.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.sqlserver.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</properties>
|
|
|
|
</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>${jtds.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<jtds.version>1.2</jtds.version>
|
|
|
|
<connection.driver.name>net.sourceforge.jtds.jdbc.Driver</connection.driver.name>
|
|
|
|
<!--<connection.url>jdbc:jtds:sybase://localhost/OPENJPA</connection.url>-->
|
|
|
|
<connection.url>${openjpa.sybase.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.sybase.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.sybase.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!-- Profile for testing with Sybase DB using the jConnect driver -->
|
|
|
|
<profile>
|
|
|
|
<id>test-sybase-jconnect</id>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${jconnect.groupId}</groupId>
|
|
|
|
<artifactId>${jconnect.artifactId}</artifactId>
|
|
|
|
<version>${jconnect.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>com.sybase.jdbc3.jdbc.SybDriver</connection.driver.name>
|
|
|
|
<!--<connection.url>jdbc:sybase:Tds:localhost:7100/OPENJPA</connection.url>-->
|
|
|
|
<connection.url>${openjpa.sybase.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.sybase.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.sybase.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</properties>
|
|
|
|
</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>jdbc:ingres://localhost/OPENJPA</connection.url>-->
|
|
|
|
<connection.url>${openjpa.ingres.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.ingres.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.ingres.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
2021-04-10 10:55:53 -04:00
|
|
|
<!-- Profile for testing with HerdDB -->
|
|
|
|
<profile>
|
|
|
|
<id>test-herddb-docker</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-herddb-docker</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.herddb</groupId>
|
|
|
|
<artifactId>herddb-jdbc</artifactId>
|
|
|
|
<version>0.22.0</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
2021-05-05 01:33:50 -04:00
|
|
|
<connection.driver.name>herddb.jdbc.Driver</connection.driver.name>
|
2021-05-08 07:53:49 -04:00
|
|
|
<tests.openjpa.driverDataSource>simple</tests.openjpa.driverDataSource>
|
2021-04-10 10:55:53 -04:00
|
|
|
|
2021-05-08 07:53:49 -04:00
|
|
|
|
|
|
|
<connection.url>jdbc:herddb:localhost:7000</connection.url>
|
2021-04-10 10:55:53 -04:00
|
|
|
<connection.username>sa</connection.username>
|
|
|
|
<connection.password>hdb</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
|
|
|
|
<!-- DBCP overrides for testing -->
|
|
|
|
<dbcp.maxIdle>5</dbcp.maxIdle>
|
2021-05-05 01:33:50 -04:00
|
|
|
<dbcp.minIdle>1</dbcp.minIdle>
|
2021-04-10 10:55:53 -04:00
|
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<images>
|
|
|
|
<image>
|
|
|
|
<name>herddb/herddb:latest</name>
|
|
|
|
<run>
|
|
|
|
<ports>
|
|
|
|
<port>7000:7000</port>
|
|
|
|
</ports>
|
|
|
|
</run>
|
|
|
|
</image>
|
|
|
|
</images>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
2018-10-23 04:33:25 -04:00
|
|
|
<!-- 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>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>${openjpa.custom.driverclass}</connection.driver.name>
|
|
|
|
<connection.url>${openjpa.custom.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.custom.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.custom.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Profile for testing with a custom DB using two system jars.
|
|
|
|
Some databases (DB2) use more than one jar for their JDBC provider.
|
|
|
|
Functionally this is identical to the previous profile, with a
|
|
|
|
second system dependency added.
|
|
|
|
-->
|
|
|
|
<!--
|
|
|
|
For example, to test with DB2, you might run:
|
|
|
|
mvn test -Dtest=TestPersistence -Ptest-custom2 \
|
|
|
|
-Dopenjpa.custom.driverjar1=$(pwd)/drivers/db2jcc.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.username=USERNAME \
|
|
|
|
-Dopenjpa.custom.password=PASSWORD
|
|
|
|
-->
|
|
|
|
<profile>
|
|
|
|
<id>test-custom2</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-custom2</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>openjpa.customdriver1</groupId>
|
|
|
|
<artifactId>openjpa.customdriver1</artifactId>
|
|
|
|
<version>1.0</version>
|
|
|
|
<scope>system</scope>
|
|
|
|
<systemPath>${openjpa.custom.driverjar1}</systemPath>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>openjpa.customdriver2</groupId>
|
|
|
|
<artifactId>openjpa.customdriver2</artifactId>
|
|
|
|
<version>1.0</version>
|
|
|
|
<scope>system</scope>
|
|
|
|
<systemPath>${openjpa.custom.driverjar2}</systemPath>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<connection.driver.name>${openjpa.custom.driverclass}</connection.driver.name>
|
|
|
|
<connection.url>${openjpa.custom.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.custom.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.custom.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The test-custom2 profile does not work very well when used with a
|
|
|
|
continuous build system. As a convenience I've added profiles for
|
|
|
|
some of the proprietary databases to make testing easier.
|
|
|
|
-->
|
|
|
|
<profile>
|
|
|
|
<!--
|
|
|
|
Example db2 profile. You can use this profile if you:
|
|
|
|
1) have the DB2 artifacts installed in a local repo and supply
|
|
|
|
the URL:
|
2018-10-28 08:07:42 -04:00
|
|
|
-Ddb2.maven.repo=http://my.local.repo
|
2018-10-23 04:33:25 -04:00
|
|
|
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,
|
|
|
|
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>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-db2-jcc</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${db2.groupid}</groupId>
|
|
|
|
<artifactId>${db2.driver.artifactid}</artifactId>
|
|
|
|
<version>${db2.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${db2.groupid}</groupId>
|
|
|
|
<artifactId>${db2.license.artifactid}</artifactId>
|
|
|
|
<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.driver.artifactid>jcc-driver</db2.driver.artifactid>
|
|
|
|
<db2.license.artifactid>jcc-license</db2.license.artifactid>
|
|
|
|
<db2.version>9.5</db2.version>
|
|
|
|
<connection.driver.name>com.ibm.db2.jcc.DB2Driver</connection.driver.name>
|
|
|
|
<!--<connection.url>jdbc:db2://localhost/openjpa</connection.url>-->
|
|
|
|
<connection.url>${openjpa.db2.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.db2.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.db2.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</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 for testing Apache Derby with the DB2 JCC driver -->
|
|
|
|
<profile>
|
|
|
|
<id>test-derbyjcc</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-derbyjcc</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${db2.groupid}</groupId>
|
|
|
|
<artifactId>${db2.driver.artifactid}</artifactId>
|
|
|
|
<version>${db2.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${db2.groupid}</groupId>
|
|
|
|
<artifactId>${db2.license.artifactid}</artifactId>
|
|
|
|
<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.driver.artifactid>jcc-driver</db2.driver.artifactid>
|
|
|
|
<db2.license.artifactid>jcc-license</db2.license.artifactid>
|
|
|
|
<db2.version>9.5</db2.version>
|
|
|
|
<!--
|
|
|
|
Note: DB must be created before using this profile,
|
|
|
|
which can be done by running:
|
|
|
|
mvn test -Dtest=<testcase> -Ptest-derbynet
|
|
|
|
-->
|
|
|
|
<openjpa.derbyjcc.url>jdbc:db2://localhost:1527/openjpa20</openjpa.derbyjcc.url>
|
|
|
|
<!-- Note: commons-dbcp2 requires dummy values for uid/pwd -->
|
|
|
|
<openjpa.derbyjcc.username>uid</openjpa.derbyjcc.username>
|
|
|
|
<openjpa.derbyjcc.password>pwd</openjpa.derbyjcc.password>
|
|
|
|
<connection.driver.name>com.ibm.db2.jcc.DB2Driver</connection.driver.name>
|
|
|
|
<connection.url>${openjpa.derbyjcc.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.derbyjcc.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.derbyjcc.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 for testing Informix with the DB2 JCC driver -->
|
|
|
|
<profile>
|
|
|
|
<!--
|
|
|
|
Example Informix JCC profile. You can use this profile if you:
|
|
|
|
1a) have the DB2 JCC artifacts installed in a local repo and
|
|
|
|
supply the URL:
|
2018-10-28 08:07:42 -04:00
|
|
|
-Dids.maven.repo=http://my.local.repo
|
2018-10-23 04:33:25 -04:00
|
|
|
1b) or have a copy of the DB2 JCC driver and run the commands
|
|
|
|
listed above in the test-db2-jcc profile.
|
2018-10-28 08:07:42 -04:00
|
|
|
2) have the DRDA service enabled on the IDS server, which
|
2018-10-23 04:33:25 -04:00
|
|
|
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>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-ids-jcc</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${ids.groupid}</groupId>
|
|
|
|
<artifactId>${ids.driver.artifactid}</artifactId>
|
|
|
|
<version>${ids.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${ids.groupid}</groupId>
|
|
|
|
<artifactId>${ids.license.artifactid}</artifactId>
|
|
|
|
<version>${ids.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<ids.maven.repo>http://not.a.real.repository</ids.maven.repo>
|
|
|
|
<ids.groupid>com.ibm.db2</ids.groupid>
|
|
|
|
<ids.driver.artifactid>jcc-driver</ids.driver.artifactid>
|
|
|
|
<ids.license.artifactid>jcc-license</ids.license.artifactid>
|
|
|
|
<ids.version>9.5</ids.version>
|
|
|
|
<connection.driver.name>com.ibm.db2.jcc.DB2Driver</connection.driver.name>
|
|
|
|
<connection.url>${openjpa.ids.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.ids.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.ids.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</properties>
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>ids.repository</id>
|
|
|
|
<name>Informix Repository</name>
|
|
|
|
<url>${ids.maven.repo}</url>
|
|
|
|
<layout>default</layout>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</snapshots>
|
|
|
|
<releases>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
<checksumPolicy>ignore</checksumPolicy>
|
|
|
|
</releases>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!-- Profile for testing Informix with the Informix JDBC Driver -->
|
|
|
|
<profile>
|
|
|
|
<!--
|
|
|
|
Example Informix profile. You can use this profile if you:
|
|
|
|
1) have the Informix JDBC artifacts installed in a local repo and
|
|
|
|
supply the URL:
|
|
|
|
-Dids.maven.repo=http://my.local.repo
|
|
|
|
2) have a copy of the Informix driver and run the following
|
|
|
|
commands :
|
|
|
|
mvn install:install-file -Dfile=${path to ifxjdbc.jar} \
|
|
|
|
-DgroupId=com.informix \
|
|
|
|
-DartifactId=informix-driver \
|
|
|
|
-Dversion=3.70 \
|
|
|
|
-Dpackaging=jar
|
|
|
|
|
|
|
|
You must also set the following properties:
|
|
|
|
-Dopenjpa.ids.url=jdbc:informix-sqli://<HOST>:<PORT>:informixserver=<INFORMIXSERVER>;database=<DBNAME>
|
|
|
|
-Dopenjpa.ids.username=<ids_uid>
|
|
|
|
-Dopenjpa.ids.password=<ids_pwd>
|
|
|
|
|
|
|
|
Optionally, you can override the default Informix groupId,
|
|
|
|
artifactIds and version by also supplying the following
|
|
|
|
properties:
|
|
|
|
-Dids.groupid=com.informix
|
|
|
|
-Dids.driver.artifactid=informix-driver
|
|
|
|
-Dids.version=3.70
|
|
|
|
-->
|
|
|
|
<id>test-ids-informix</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-ids-informix</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${ids.groupid}</groupId>
|
|
|
|
<artifactId>${ids.driver.artifactid}</artifactId>
|
|
|
|
<version>${ids.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<ids.maven.repo>http://not.a.real.repository</ids.maven.repo>
|
|
|
|
<ids.groupid>com.informix</ids.groupid>
|
|
|
|
<ids.driver.artifactid>informix-driver</ids.driver.artifactid>
|
|
|
|
<ids.version>3.70</ids.version>
|
|
|
|
<connection.driver.name>com.informix.jdbc.IfxDriver</connection.driver.name>
|
|
|
|
<connection.url>${openjpa.ids.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.ids.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.ids.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</properties>
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>ids.repository</id>
|
|
|
|
<name>Informix Repository</name>
|
|
|
|
<url>${ids.maven.repo}</url>
|
|
|
|
<layout>default</layout>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</snapshots>
|
|
|
|
<releases>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
<checksumPolicy>ignore</checksumPolicy>
|
|
|
|
</releases>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
</profile>
|
|
|
|
|
2019-01-06 17:43:41 -05:00
|
|
|
<!--
|
|
|
|
Profile for testing with Oracle DB against a Docker image
|
|
|
|
|
|
|
|
Attention: This might requiere a manual download of the Oracle JDBC driver.
|
|
|
|
This driver (ojdbc6.jar) can be downloaded at the Oracle homepage.
|
|
|
|
|
|
|
|
Then determine which version you got
|
|
|
|
$> unzip -p ojdbc6.jar META-INF/MANIFEST.MF
|
|
|
|
This will contain something like
|
|
|
|
"Implementation-Version: 11.2.0.4.0"
|
|
|
|
Use this version to install the JDBC driver into your local Maven repository
|
|
|
|
with
|
|
|
|
$> mvn install:file ...
|
|
|
|
|
|
|
|
By default we use a ojdbc6 version hosted at Atlassian.
|
|
|
|
For this to work we also need to add a repository section.
|
|
|
|
We only use it for the ojdbc driver though.
|
|
|
|
-->
|
|
|
|
<profile>
|
|
|
|
<id>test-oracle-docker</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-oracle-docker</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
2021-04-01 10:50:49 -04:00
|
|
|
<oracle.groupid>com.oracle.ojdbc</oracle.groupid>
|
|
|
|
<oracle.artifactid>ojdbc8</oracle.artifactid>
|
|
|
|
<oracle.version>19.3.0.0</oracle.version>
|
2019-01-06 17:43:41 -05:00
|
|
|
|
2019-01-10 07:27:42 -05:00
|
|
|
<oracle.server.version>latest</oracle.server.version>
|
2019-01-06 17:43:41 -05:00
|
|
|
<docker.external.oracle.port>1521</docker.external.oracle.port>
|
|
|
|
|
|
|
|
<connection.driver.name>oracle.jdbc.driver.OracleDriver</connection.driver.name>
|
|
|
|
<openjpa.oracle.database>openjpatst</openjpa.oracle.database>
|
|
|
|
<openjpa.oracle.username>openjpatst</openjpa.oracle.username>
|
|
|
|
<openjpa.oracle.password>openjpatst</openjpa.oracle.password>
|
|
|
|
<openjpa.oracle.SID>xe</openjpa.oracle.SID>
|
|
|
|
<openjpa.oracle.url>jdbc:oracle:thin:@localhost:${docker.external.oracle.port}:${openjpa.oracle.SID}</openjpa.oracle.url>
|
|
|
|
|
|
|
|
<connection.url>${openjpa.oracle.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.oracle.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.oracle.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
2019-01-07 17:00:36 -05:00
|
|
|
|
|
|
|
<!-- DBCP overrides -->
|
|
|
|
<dbcp.maxIdle>20</dbcp.maxIdle>
|
|
|
|
<dbcp.minIdle>0</dbcp.minIdle>
|
|
|
|
<dbcp.maxTotal>20</dbcp.maxTotal>
|
|
|
|
|
2019-01-06 17:43:41 -05:00
|
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${oracle.groupid}</groupId>
|
|
|
|
<artifactId>${oracle.artifactid}</artifactId>
|
|
|
|
<version>${oracle.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<images>
|
|
|
|
<image>
|
2021-04-01 10:50:49 -04:00
|
|
|
<!--<name>oracledb19c/oracle.19.3.0-ee:oracle19.3.0-ee</name>-->
|
2021-04-10 13:06:15 -04:00
|
|
|
<name>oracleinanutshell/oracle-xe-11g</name>
|
|
|
|
<!--<name>pvargacl/oracle-xe-18.4.0:latest</name>-->
|
2019-01-06 17:43:41 -05:00
|
|
|
<run>
|
|
|
|
<volumes>
|
|
|
|
<bind>
|
|
|
|
<volume>${project.basedir}/src/test/sql/oracle-docker:/docker-entrypoint-initdb.d/</volume>
|
|
|
|
</bind>
|
|
|
|
</volumes>
|
|
|
|
<ports>
|
|
|
|
<port>${docker.external.oracle.port}:1521</port>
|
|
|
|
</ports>
|
|
|
|
</run>
|
|
|
|
</image>
|
|
|
|
</images>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
2018-10-23 04:33:25 -04:00
|
|
|
<!-- Profile for testing with Oracle DB -->
|
|
|
|
<profile>
|
|
|
|
<!--
|
|
|
|
Example oracle profile. You can use this profile if you:
|
|
|
|
1) have the Oracle artifacts installed in a local repo and
|
|
|
|
supply the URL:
|
2018-10-28 08:07:42 -04:00
|
|
|
-Doracle.maven.repo=http://my.local.repo
|
2018-10-23 04:33:25 -04:00
|
|
|
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>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-oracle</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${oracle.groupid}</groupId>
|
|
|
|
<artifactId>${oracle.artifactid}</artifactId>
|
|
|
|
<version>${oracle.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<oracle.maven.repo>http://not.a.real.repository</oracle.maven.repo>
|
2021-04-06 00:52:08 -04:00
|
|
|
<oracle.groupid>com.oracle.ojdbc</oracle.groupid>
|
|
|
|
<oracle.artifactid>ojdbc8</oracle.artifactid>
|
|
|
|
<oracle.version>19.3.0.0</oracle.version>
|
2018-10-23 04:33:25 -04:00
|
|
|
<connection.driver.name>oracle.jdbc.driver.OracleDriver</connection.driver.name>
|
|
|
|
<!--<connection.url>jdbc:oracle:thin:@localhost:1521:OPENJPA</connection.url>-->
|
|
|
|
<connection.url>${openjpa.oracle.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.oracle.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.oracle.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!-- Profile for testing IBM SolidDB -->
|
|
|
|
<profile>
|
|
|
|
<id>test-soliddb</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>test-soliddb</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>${soliddb.groupid}</groupId>
|
|
|
|
<artifactId>${soliddb.driver.artifactid}</artifactId>
|
|
|
|
<version>${soliddb.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<soliddb.maven.repo>http://not.a.real.repository</soliddb.maven.repo>
|
|
|
|
<soliddb.groupid>com.ibm.soliddb</soliddb.groupid>
|
|
|
|
<soliddb.driver.artifactid>soliddb</soliddb.driver.artifactid>
|
|
|
|
<soliddb.version>6.5</soliddb.version>
|
|
|
|
<connection.driver.name>solid.jdbc.SolidDriver</connection.driver.name>
|
|
|
|
<!--<connection.url>jdbc:solid://localhost:2315</connection.url>-->
|
|
|
|
<connection.url>${openjpa.soliddb.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.soliddb.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.soliddb.password}</connection.password>
|
|
|
|
<jdbc.DBDictionary />
|
|
|
|
</properties>
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>soliddb.repository</id>
|
|
|
|
<name>SolidDB Repository</name>
|
|
|
|
<url>${soliddb.maven.repo}</url>
|
|
|
|
<layout>default</layout>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</snapshots>
|
|
|
|
<releases>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
<checksumPolicy>ignore</checksumPolicy>
|
|
|
|
</releases>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
</profile>
|
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
</profiles>
|
|
|
|
|
2007-10-03 05:10:54 -04:00
|
|
|
<!-- default versions for dependencies that child modules may include -->
|
|
|
|
<dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
2018-09-02 09:59:07 -04:00
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-pool2</artifactId>
|
2023-04-24 03:16:57 -04:00
|
|
|
<version>${pool2.version}</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-logging</groupId>
|
|
|
|
<artifactId>commons-logging</artifactId>
|
2016-05-11 07:32:59 -04:00
|
|
|
<version>1.2</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.sourceforge.serp</groupId>
|
|
|
|
<artifactId>serp</artifactId>
|
2014-11-24 13:48:57 -05:00
|
|
|
<version>1.15.1</version>
|
2017-10-03 05:42:17 -04:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
2023-04-24 03:16:57 -04:00
|
|
|
|
2007-10-03 05:10:54 -04:00
|
|
|
<dependency>
|
2023-04-24 03:16:57 -04:00
|
|
|
<groupId>jakarta.persistence</groupId>
|
|
|
|
<artifactId>jakarta.persistence-api</artifactId>
|
|
|
|
<version>${jakarta.persistence-api.version}</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2023-04-24 03:16:57 -04:00
|
|
|
<groupId>jakarta.annotation</groupId>
|
|
|
|
<artifactId>jakarta.annotation-api</artifactId>
|
|
|
|
<version>${jakarta.annotation-api.version}</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2023-04-24 03:16:57 -04:00
|
|
|
<groupId>jakarta.validation</groupId>
|
|
|
|
<artifactId>jakarta.validation-api</artifactId>
|
|
|
|
<version>${jakarta.validation-api.version}</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
2009-05-18 13:05:48 -04:00
|
|
|
<dependency>
|
2023-04-24 03:16:57 -04:00
|
|
|
<groupId>jakarta.transaction</groupId>
|
|
|
|
<artifactId>jakarta.transaction-api</artifactId>
|
|
|
|
<version>${jakarta.transaction-api.version}</version>
|
2010-08-05 13:10:20 -04:00
|
|
|
</dependency>
|
2023-04-24 03:16:57 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>jakarta.jms</groupId>
|
|
|
|
<artifactId>jakarta.jms-api</artifactId>
|
|
|
|
<version>${jakarta.jms-api.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
2010-06-21 15:12:34 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.bval</groupId>
|
|
|
|
<artifactId>org.apache.bval.bundle</artifactId>
|
2016-10-27 09:15:29 -04:00
|
|
|
<version>${bval.version}</version>
|
2010-06-21 15:12:34 -04:00
|
|
|
</dependency>
|
2007-10-03 05:10:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.derby</groupId>
|
|
|
|
<artifactId>derby</artifactId>
|
2009-08-19 11:36:02 -04:00
|
|
|
<version>${derby.version}</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
2023-04-24 03:16:57 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.derby</groupId>
|
|
|
|
<artifactId>derbytools</artifactId>
|
|
|
|
<version>${derby.version}</version>
|
|
|
|
</dependency>
|
2018-10-18 01:38:31 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.derby</groupId>
|
|
|
|
<artifactId>derbyclient</artifactId>
|
|
|
|
<version>${derby.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
2018-10-31 15:51:31 -04:00
|
|
|
<version>${mysql.connector.version}</version>
|
2018-10-18 01:38:31 -04:00
|
|
|
</dependency>
|
2007-10-03 05:10:54 -04:00
|
|
|
<dependency>
|
2018-09-24 02:41:20 -04:00
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-dbcp2</artifactId>
|
2021-06-16 06:25:45 -04:00
|
|
|
<version>${dbcp2.version}</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.xml.bind</groupId>
|
|
|
|
<artifactId>jaxb-api</artifactId>
|
2012-04-04 13:15:50 -04:00
|
|
|
<version>2.2.1</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
2008-12-23 18:21:11 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.sun.xml.bind</groupId>
|
|
|
|
<artifactId>jaxb-impl</artifactId>
|
2012-04-04 13:15:50 -04:00
|
|
|
<version>2.2.1</version>
|
2008-12-23 18:21:11 -05:00
|
|
|
</dependency>
|
2007-10-03 05:10:54 -04:00
|
|
|
<dependency>
|
2018-09-24 02:41:20 -04:00
|
|
|
<groupId>org.hsqldb</groupId>
|
2007-10-03 05:10:54 -04:00
|
|
|
<artifactId>hsqldb</artifactId>
|
2009-10-30 11:33:39 -04:00
|
|
|
<version>${hsqldb.version}</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
2010-09-29 17:43:11 -04:00
|
|
|
<dependency>
|
2018-10-18 01:38:31 -04:00
|
|
|
<groupId>org.postgresql</groupId>
|
2010-09-29 17:43:11 -04:00
|
|
|
<artifactId>postgresql</artifactId>
|
2018-11-03 17:54:12 -04:00
|
|
|
<version>${postgresql.connector.version}</version>
|
2010-09-29 17:43:11 -04:00
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2007-10-03 05:10:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>jakarta-regexp</groupId>
|
|
|
|
<artifactId>jakarta-regexp</artifactId>
|
|
|
|
<version>1.4</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
2018-10-18 01:38:31 -04:00
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
<artifactId>log4j-core</artifactId>
|
2020-12-01 05:35:29 -05:00
|
|
|
<version>${log4j2.version}</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
2020-12-01 05:35:29 -05:00
|
|
|
<dependency>
|
|
|
|
<!-- for compiling against log4j-1.2.x we use the compat layer from log4j2 -->
|
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
|
<artifactId>log4j-1.2-api</artifactId>
|
|
|
|
<version>${log4j2.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
2020-01-21 02:32:10 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
<artifactId>kubernetes-client</artifactId>
|
|
|
|
<version>${kubernetes-client.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
<artifactId>kubernetes-server-mock</artifactId>
|
|
|
|
<version>${kubernetes-client.version}</version>
|
|
|
|
</dependency>
|
2010-07-20 15:17:57 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>${slf4j.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-simple</artifactId>
|
|
|
|
<version>${slf4j.version}</version>
|
2010-07-20 15:17:57 -04:00
|
|
|
</dependency>
|
2007-10-03 05:10:54 -04:00
|
|
|
<dependency>
|
2010-10-29 10:00:35 -04:00
|
|
|
<groupId>org.apache.ant</groupId>
|
2007-10-03 05:10:54 -04:00
|
|
|
<artifactId>ant</artifactId>
|
2021-04-04 07:51:03 -04:00
|
|
|
<version>${ant.version}</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
2009-05-28 14:31:12 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jmock</groupId>
|
|
|
|
<artifactId>jmock</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>${jmock.version}</version>
|
2009-05-28 14:31:12 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jmock</groupId>
|
2015-06-02 14:04:26 -04:00
|
|
|
<artifactId>jmock-junit4</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>${jmock.version}</version>
|
2009-05-28 14:31:12 -04:00
|
|
|
</dependency>
|
2010-06-21 15:12:34 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
2021-04-03 17:19:15 -04:00
|
|
|
<version>4.13.2</version>
|
2010-06-21 15:12:34 -04:00
|
|
|
</dependency>
|
2010-06-30 08:24:04 -04:00
|
|
|
<dependency>
|
2018-10-18 01:38:31 -04:00
|
|
|
<groupId>com.google.code.findbugs</groupId>
|
2010-06-30 08:24:04 -04:00
|
|
|
<artifactId>annotations</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>3.0.1</version>
|
2010-06-30 08:24:04 -04:00
|
|
|
</dependency>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependencies>
|
|
|
|
</dependencyManagement>
|
2009-10-28 10:45:15 -04:00
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2010-09-29 17:43:11 -04:00
|
|
|
<dependency>
|
2018-09-24 02:41:20 -04:00
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-dbcp2</artifactId>
|
2010-09-29 17:43:11 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2007-07-03 18:42:39 -04:00
|
|
|
</dependencies>
|
2009-10-28 10:45:15 -04:00
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<build>
|
2010-08-25 13:46:12 -04:00
|
|
|
<defaultGoal>install</defaultGoal>
|
|
|
|
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<testResources>
|
|
|
|
<testResource>
|
|
|
|
<directory>src/test/resources</directory>
|
|
|
|
</testResource>
|
|
|
|
</testResources>
|
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>3.8.0</version>
|
2007-07-03 18:42:39 -04:00
|
|
|
<configuration>
|
2012-02-14 10:37:52 -05:00
|
|
|
<source>${compile.class.source}</source>
|
|
|
|
<target>${compile.class.target}</target>
|
2010-07-28 15:24:33 -04:00
|
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
2007-07-03 18:42:39 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2016-05-10 17:36:15 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
2020-09-06 07:38:13 -04:00
|
|
|
<version>3.3.0</version>
|
2016-05-10 17:36:15 -04:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<version>${maven.javadoc.version}</version>
|
2018-06-08 15:54:43 -04:00
|
|
|
<configuration>
|
|
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
|
|
|
<additionalparam>
|
|
|
|
${javadoc.additionalparam} -Xdoclint:none
|
|
|
|
</additionalparam>
|
|
|
|
</configuration>
|
2016-05-10 17:36:15 -04:00
|
|
|
</plugin>
|
2007-07-03 18:42:39 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
2015-06-02 14:04:26 -04:00
|
|
|
<version>${maven.surefire.version}</version>
|
2007-07-03 18:42:39 -04:00
|
|
|
<configuration>
|
|
|
|
<argLine>${surefire.jvm.args}</argLine>
|
2016-08-23 03:19:56 -04:00
|
|
|
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
2007-07-03 18:42:39 -04:00
|
|
|
<trimStackTrace>false</trimStackTrace>
|
2010-10-03 14:03:38 -04:00
|
|
|
<useSystemClassLoader>true</useSystemClassLoader>
|
2015-06-02 14:04:26 -04:00
|
|
|
<excludes>
|
|
|
|
<!-- exclude classes that include a $; inner classes
|
|
|
|
are not test cases per OpenJPA standards -->
|
|
|
|
<exclude>org/apache/openjpa/**/*$*.class</exclude>
|
|
|
|
</excludes>
|
2010-11-30 17:01:47 -05:00
|
|
|
<systemProperties>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.Log</name>
|
|
|
|
<value>${openjpa.Log}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.DynamicEnhancementAgent</name>
|
|
|
|
<value>${openjpa.DynamicEnhancementAgent}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionDriverName</name>
|
|
|
|
<value>${connection.driver.name}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionURL</name>
|
|
|
|
<value>${connection.url}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionUserName</name>
|
|
|
|
<value>${connection.username}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionPassword</name>
|
|
|
|
<value>${connection.password}</value>
|
|
|
|
</property>
|
2011-01-24 15:43:57 -05:00
|
|
|
<property>
|
|
|
|
<name>openjpa.jdbc.DBDictionary</name>
|
|
|
|
<value>${jdbc.DBDictionary}</value>
|
|
|
|
</property>
|
2010-11-30 17:01:47 -05:00
|
|
|
<property>
|
|
|
|
<name>derby.stream.error.file</name>
|
|
|
|
<value>target/derby.log</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>derby.locks.deadlockTimeout</name>
|
|
|
|
<value>${derby.locks.deadlockTimeout}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>derby.locks.waitTimeout</name>
|
|
|
|
<value>${derby.locks.waitTimeout}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.ConnectionProperties</name>
|
|
|
|
<value>${dbcp.args}</value>
|
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>tests.openjpa.allowfailure</name>
|
|
|
|
<value>${tests.openjpa.allowfailure}</value>
|
|
|
|
</property>
|
2021-04-09 08:22:53 -04:00
|
|
|
<property>
|
|
|
|
<name>openjpa.jdbc.DriverDataSource</name>
|
|
|
|
<value>${tests.openjpa.driverDataSource}</value>
|
|
|
|
</property>
|
2010-11-30 17:01:47 -05:00
|
|
|
</systemProperties>
|
2007-07-03 18:42:39 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2018-10-22 15:06:43 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
2021-06-16 12:28:23 -04:00
|
|
|
<version>0.36.0</version>
|
2018-10-22 15:06:43 -04:00
|
|
|
</plugin>
|
2010-07-28 15:24:33 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-report-plugin</artifactId>
|
2015-06-02 14:04:26 -04:00
|
|
|
<version>${maven.surefire.version}</version>
|
2010-07-28 15:24:33 -04:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>findbugs-maven-plugin</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>3.0.5</version>
|
2010-07-28 15:24:33 -04:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
2016-05-10 17:36:15 -04:00
|
|
|
<version>1.4</version>
|
2010-07-28 15:24:33 -04:00
|
|
|
<configuration>
|
|
|
|
<getRevisionOnlyOnce>true</getRevisionOnlyOnce>
|
|
|
|
<revisionOnScmFailure>offline</revisionOnScmFailure>
|
2010-10-14 12:54:45 -04:00
|
|
|
<useLastCommittedRevision>true</useLastCommittedRevision>
|
|
|
|
<timestampFormat>{0,date,long} at {0,time,short}</timestampFormat>
|
2010-07-28 15:24:33 -04:00
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>create</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2007-08-14 18:39:55 -04:00
|
|
|
<plugin>
|
2010-06-04 13:15:05 -04:00
|
|
|
<groupId>org.apache.rat</groupId>
|
|
|
|
<artifactId>apache-rat-plugin</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>0.12</version>
|
2010-08-25 13:46:12 -04:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>3.1.1</version>
|
2010-07-28 15:24:33 -04:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-release-plugin</artifactId>
|
2016-05-10 17:36:15 -04:00
|
|
|
<version>2.5.3</version>
|
2010-07-28 15:24:33 -04:00
|
|
|
<configuration>
|
|
|
|
<useReleaseProfile>false</useReleaseProfile>
|
2018-06-27 10:09:40 -04:00
|
|
|
<tagNameFormat>@{project.version}</tagNameFormat>
|
2015-04-19 06:39:39 -04:00
|
|
|
|
|
|
|
<!--
|
|
|
|
The openbooks example contains a build.xml which tries to add ~/.m2/repository/../openjpa-all-nnn.jar
|
|
|
|
to the classpath. But since the maven-release-plugin by default only prepares with 'clean verify'
|
|
|
|
the jar doesn't end in the local m2 repo. It will only be in the opanjpa-all/target folder.
|
|
|
|
For now I forced an 'install', but we should ultimately just fix the openbooks example.
|
|
|
|
-->
|
|
|
|
<preparationGoals>clean install</preparationGoals>
|
|
|
|
|
2015-04-06 16:53:21 -04:00
|
|
|
<goals>deploy</goals>
|
2015-04-05 14:20:23 -04:00
|
|
|
<arguments>-Papache-release,docbook-profile,test-derby,bval</arguments>
|
2010-07-28 15:24:33 -04:00
|
|
|
<autoVersionSubmodules>true</autoVersionSubmodules>
|
2018-11-10 15:50:43 -05:00
|
|
|
|
|
|
|
<!-- special config for git -->
|
|
|
|
<pushChanges>false</pushChanges>
|
|
|
|
<localCheckout>true</localCheckout>
|
2010-07-28 15:24:33 -04:00
|
|
|
</configuration>
|
2007-08-14 18:39:55 -04:00
|
|
|
</plugin>
|
2009-02-04 10:12:58 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>1.8</version>
|
2009-02-04 10:12:58 -05:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.ant</groupId>
|
|
|
|
<artifactId>ant-jsch</artifactId>
|
2021-04-04 07:51:03 -04:00
|
|
|
<version>1.10.9</version>
|
2009-02-04 10:12:58 -05:00
|
|
|
</dependency>
|
2010-09-15 14:06:25 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>ant-contrib</groupId>
|
|
|
|
<artifactId>ant-contrib</artifactId>
|
|
|
|
<version>1.0b3</version>
|
2010-10-29 10:00:35 -04:00
|
|
|
<!-- tries to pull in older ant-1.5.jar -->
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>ant</groupId>
|
|
|
|
<artifactId>ant</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2010-09-15 14:06:25 -04:00
|
|
|
</dependency>
|
2009-02-04 10:12:58 -05:00
|
|
|
</dependencies>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>taglist-maven-plugin</artifactId>
|
2010-10-29 10:00:35 -04:00
|
|
|
<version>2.4</version>
|
2009-02-04 10:12:58 -05:00
|
|
|
</plugin>
|
2009-05-11 11:21:52 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>3.2.0</version>
|
2009-05-11 11:21:52 -04:00
|
|
|
</plugin>
|
2009-04-07 09:43:53 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
2020-03-17 12:17:19 -04:00
|
|
|
<version>3.1.1</version>
|
2009-04-07 09:43:53 -04:00
|
|
|
</plugin>
|
2010-08-19 13:31:55 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>3.1.0</version>
|
2010-08-19 13:31:55 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>default-jar</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
|
|
</manifest>
|
|
|
|
<manifestEntries>
|
|
|
|
<Implementation-Build>${buildNumber}</Implementation-Build>
|
2010-10-14 12:54:45 -04:00
|
|
|
<Implementation-Date>${timestamp}</Implementation-Date>
|
2010-08-19 13:31:55 -04:00
|
|
|
</manifestEntries>
|
|
|
|
</archive>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>attach-tests</id>
|
|
|
|
<goals>
|
|
|
|
<goal>test-jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2009-05-20 16:42:47 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.felix</groupId>
|
|
|
|
<artifactId>maven-bundle-plugin</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>4.0.0</version>
|
2010-07-21 14:32:43 -04:00
|
|
|
<extensions>true</extensions>
|
|
|
|
<configuration>
|
|
|
|
<instructions>
|
|
|
|
<Implementation-Title>${project.name}</Implementation-Title>
|
|
|
|
<Implementation-Version>${project.version}</Implementation-Version>
|
|
|
|
<Bundle-DocURL>${project.url}</Bundle-DocURL>
|
|
|
|
</instructions>
|
|
|
|
</configuration>
|
2009-05-20 16:42:47 -04:00
|
|
|
</plugin>
|
2018-06-28 11:08:58 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.karaf.tooling</groupId>
|
|
|
|
<artifactId>karaf-maven-plugin</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>4.2.1</version>
|
2018-06-28 11:08:58 -04:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
|
|
<version>3.0.0</version>
|
|
|
|
</plugin>
|
2011-11-22 11:51:37 -05:00
|
|
|
|
2010-04-22 10:19:52 -04:00
|
|
|
<plugin>
|
2011-11-22 11:51:37 -05:00
|
|
|
<groupId>org.apache.openjpa</groupId>
|
2010-04-22 10:19:52 -04:00
|
|
|
<artifactId>openjpa-maven-plugin</artifactId>
|
2011-12-22 05:48:51 -05:00
|
|
|
<version>${project.version}</version>
|
2010-04-22 10:19:52 -04:00
|
|
|
</plugin>
|
2011-11-22 11:51:37 -05:00
|
|
|
|
2010-10-14 12:54:45 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>com.agilejava.docbkx</groupId>
|
|
|
|
<artifactId>docbkx-maven-plugin</artifactId>
|
2016-05-10 17:36:15 -04:00
|
|
|
<version>2.0.17</version>
|
2010-10-14 12:54:45 -04:00
|
|
|
</plugin>
|
2007-07-03 18:42:39 -04:00
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
2010-02-18 14:32:10 -05:00
|
|
|
|
2009-02-04 10:12:58 -05:00
|
|
|
<plugins>
|
2010-08-26 13:53:22 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2012-02-14 10:37:52 -05:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>test-source-compile</id>
|
|
|
|
<phase>process-test-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>testCompile</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<source>${compile.testclass.source}</source>
|
|
|
|
<target>${compile.testclass.target}</target>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2010-08-26 13:53:22 -04:00
|
|
|
</plugin>
|
2010-07-28 15:24:33 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
2009-02-04 10:12:58 -05:00
|
|
|
</plugin>
|
2009-04-02 23:09:53 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>process-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>checkstyle</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2009-04-15 11:06:53 -04:00
|
|
|
<failsOnError>true</failsOnError>
|
2009-04-03 10:42:15 -04:00
|
|
|
<consoleOutput>true</consoleOutput>
|
2009-05-27 20:22:33 -04:00
|
|
|
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
2020-03-17 12:17:19 -04:00
|
|
|
<excludes>**/*_.java</excludes>
|
|
|
|
<logViolationsToConsole>true</logViolationsToConsole>
|
|
|
|
<checkstyleRules>
|
|
|
|
<module name="Checker">
|
|
|
|
<module name="NewlineAtEndOfFile">
|
2020-07-07 05:19:15 -04:00
|
|
|
<property name="lineSeparator" value="lf" />
|
2020-03-17 12:17:19 -04:00
|
|
|
</module>
|
|
|
|
<module name="LineLength">
|
2020-07-07 05:19:15 -04:00
|
|
|
<property name="max" value="150" />
|
2020-03-17 12:17:19 -04:00
|
|
|
</module>
|
|
|
|
<module name="TreeWalker">
|
|
|
|
<module name="RegexpSinglelineJava">
|
2020-07-07 05:19:15 -04:00
|
|
|
<property name="format" value="System\.(out|err)\.print(ln)?\(" />
|
|
|
|
<property name="ignoreComments" value="true" />
|
2020-03-17 12:17:19 -04:00
|
|
|
</module>
|
|
|
|
<module name="SuppressionCommentFilter">
|
2020-07-07 05:19:15 -04:00
|
|
|
<property name="offCommentFormat" value="// START - ALLOW PRINT STATEMENTS" />
|
|
|
|
<property name="onCommentFormat" value="// STOP - ALLOW PRINT STATEMENTS" />
|
2020-03-17 12:17:19 -04:00
|
|
|
</module>
|
|
|
|
</module>
|
|
|
|
|
|
|
|
<!-- File location is specified in root pom.xml via ${checkstyle.suppressions.location} -->
|
|
|
|
<module name="SuppressionFilter">
|
2020-07-07 05:19:15 -04:00
|
|
|
<property name="file" value="${checkstyle.suppressions.location}" />
|
|
|
|
<property name="optional" value="true" />
|
2020-03-17 12:17:19 -04:00
|
|
|
</module>
|
|
|
|
</module>
|
|
|
|
</checkstyleRules>
|
2009-04-02 23:09:53 -04:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2009-10-22 15:51:29 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
2021-04-06 00:52:08 -04:00
|
|
|
<version>3.0.0-M3</version>
|
2009-10-22 15:51:29 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireMavenVersion>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>[3.3.9,)</version>
|
2009-10-22 15:51:29 -04:00
|
|
|
</requireMavenVersion>
|
|
|
|
<requireJavaVersion>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>[1.8,)</version>
|
2009-10-22 15:51:29 -04:00
|
|
|
</requireJavaVersion>
|
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2010-06-04 13:15:05 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.rat</groupId>
|
|
|
|
<artifactId>apache-rat-plugin</artifactId>
|
2010-08-25 13:46:12 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<excludeSubProjects>false</excludeSubProjects>
|
|
|
|
<numUnapprovedLicenses>0</numUnapprovedLicenses>
|
|
|
|
<excludes>
|
|
|
|
<!-- generated content -->
|
|
|
|
<exclude>**/.*/**</exclude>
|
|
|
|
<exclude>**/target/**/*</exclude>
|
|
|
|
</excludes>
|
|
|
|
<includes>
|
|
|
|
<!-- only check common source files -->
|
|
|
|
<include>**/src/**/*.bat</include>
|
|
|
|
<include>**/src/**/*.css</include>
|
|
|
|
<include>**/src/**/*.html</include>
|
|
|
|
<include>**/src/**/*.java</include>
|
|
|
|
<include>**/src/**/*.js</include>
|
|
|
|
<include>**/src/**/*.jsp</include>
|
|
|
|
<include>**/src/**/*.properties</include>
|
|
|
|
<include>**/src/**/*.sh</include>
|
|
|
|
<include>**/src/**/*.txt</include>
|
|
|
|
<include>**/src/**/*.vm</include>
|
|
|
|
<include>**/src/**/*.xml</include>
|
|
|
|
</includes>
|
|
|
|
</configuration>
|
2010-06-04 13:15:05 -04:00
|
|
|
</plugin>
|
2010-01-25 16:50:14 -05:00
|
|
|
</plugins>
|
2007-07-03 18:42:39 -04:00
|
|
|
</build>
|
2009-10-28 10:45:15 -04:00
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<reporting>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
2009-02-04 10:12:58 -05:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2007-07-03 18:42:39 -04:00
|
|
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
2018-10-18 01:38:31 -04:00
|
|
|
<version>3.0.0</version>
|
2007-07-03 18:42:39 -04:00
|
|
|
</plugin>
|
2010-08-19 13:31:55 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
2015-04-05 14:20:23 -04:00
|
|
|
<version>${maven.javadoc.version}</version>
|
2010-08-25 13:46:12 -04:00
|
|
|
<configuration>
|
|
|
|
<show>package</show>
|
|
|
|
<quiet>true</quiet>
|
2015-04-05 14:20:23 -04:00
|
|
|
<source>${java.class.version}</source>
|
2010-08-25 13:46:12 -04:00
|
|
|
<links>
|
2019-05-15 04:50:42 -04:00
|
|
|
<link>https://download.oracle.com/javase/8/docs/api/</link>
|
|
|
|
<link>https://download.oracle.com/javaee/8/api/</link>
|
2010-08-25 13:46:12 -04:00
|
|
|
</links>
|
|
|
|
</configuration>
|
2010-08-19 13:31:55 -04:00
|
|
|
<reportSets>
|
|
|
|
<reportSet>
|
|
|
|
<reports>
|
|
|
|
<report>javadoc</report>
|
|
|
|
</reports>
|
|
|
|
</reportSet>
|
|
|
|
</reportSets>
|
|
|
|
</plugin>
|
2007-07-03 18:42:39 -04:00
|
|
|
</plugins>
|
|
|
|
</reporting>
|
|
|
|
|
|
|
|
</project>
|