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
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
|
|
software distributed under the License is distributed on an
|
|
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, either express or implied. See the License for the
|
|
|
|
specific language governing permissions and limitations
|
|
|
|
under the License.
|
|
|
|
-->
|
2008-06-11 12:48:56 -04:00
|
|
|
<!--
|
|
|
|
Maven release plugin requires the project tag to be on a single line.
|
|
|
|
-->
|
|
|
|
<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>
|
2010-06-30 08:24:04 -04:00
|
|
|
<version>7</version>
|
|
|
|
<relativePath/>
|
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>
|
2009-10-01 11:19:10 -04:00
|
|
|
<description>Apache OpenJPA implementation of JSR-317 JPA 2.0</description>
|
2010-07-28 15:24:33 -04:00
|
|
|
|
2010-02-18 14:32:10 -05:00
|
|
|
<!--
|
|
|
|
Changing this version needs to also be done in all children poms
|
|
|
|
See: http://jira.codehaus.org/browse/MNG-624
|
|
|
|
-->
|
2010-03-22 22:27:40 -04:00
|
|
|
<version>2.1.0-SNAPSHOT</version>
|
2007-07-03 18:42:39 -04:00
|
|
|
|
|
|
|
<properties>
|
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>
|
|
|
|
<checkstyle.config.location>../openjpa-project/checkstyle.xml</checkstyle.config.location>
|
2010-07-28 15:24:33 -04:00
|
|
|
<site.deploy.url>scp://people.apache.org/home/${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.maxpermsize>512m</test.jvm.maxpermsize>
|
|
|
|
<test.jvm.maxheapsize>1024m</test.jvm.maxheapsize>
|
|
|
|
<test.jvm.arguments>-Xmx${test.jvm.maxheapsize} -XX:MaxPermSize=${test.jvm.maxpermsize}</test.jvm.arguments>
|
|
|
|
<surefire.jvm.args>${test.jvm.arguments}</surefire.jvm.args>
|
2010-02-23 12:27:27 -05:00
|
|
|
<dbcp.maxActive>10</dbcp.maxActive>
|
|
|
|
<dbcp.maxIdle>5</dbcp.maxIdle>
|
|
|
|
<dbcp.minIdle>2</dbcp.minIdle>
|
|
|
|
<dbcp.maxWait>10000</dbcp.maxWait>
|
|
|
|
<dbcp.args>MaxActive=${dbcp.maxActive},MaxIdle=${dbcp.maxIdle},MinIdle=${dbcp.minIdle},MaxWait=${dbcp.maxWait}</dbcp.args>
|
|
|
|
<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>
|
2010-03-23 11:00:12 -04:00
|
|
|
<!--turn off sources.jar generation by setting to none and false -->
|
|
|
|
<createSource>verify</createSource>
|
|
|
|
<createSources>true</createSources>
|
2010-02-23 12:27:27 -05:00
|
|
|
<!-- common JDBC driver versions -->
|
2010-02-18 14:34:36 -05:00
|
|
|
<derby.version>10.5.3.0_1</derby.version>
|
2009-10-30 11:33:39 -04:00
|
|
|
<hsqldb.version>1.8.0.10</hsqldb.version>
|
2010-02-23 12:27:27 -05:00
|
|
|
<mysql.version>5.1.12</mysql.version>
|
2010-07-20 15:17:57 -04:00
|
|
|
<!-- other common versions -->
|
|
|
|
<slf4jVersion>1.6.1</slf4jVersion>
|
2007-07-03 18:42:39 -04:00
|
|
|
</properties>
|
|
|
|
|
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>
|
|
|
|
<url>http://issues.apache.org/jira/browse/OPENJPA</url>
|
|
|
|
</issueManagement>
|
2010-02-18 14:32:10 -05:00
|
|
|
|
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>
|
|
|
|
<archive>http://mail-archives.apache.org/mod_mbox/openjpa-dev/</archive>
|
|
|
|
</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>
|
|
|
|
<archive>http://mail-archives.apache.org/mod_mbox/openjpa-users/</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>
|
|
|
|
<archive>http://mail-archives.apache.org/mod_mbox/openjpa-commits/</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>
|
2010-03-22 22:27:40 -04:00
|
|
|
<connection>scm:svn:http://svn.apache.org/repos/asf/openjpa/trunk</connection>
|
|
|
|
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/openjpa/trunk</developerConnection>
|
|
|
|
<url>http://svn.apache.org/repos/asf/openjpa/trunk</url>
|
2010-02-18 14:32:10 -05:00
|
|
|
</scm>
|
|
|
|
|
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>
|
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>
|
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 -->
|
|
|
|
<!-- ================ -->
|
2007-07-03 18:42:39 -04:00
|
|
|
<profile>
|
2010-07-28 15:24:33 -04:00
|
|
|
<id>apache-release</id>
|
2008-05-21 10:15:45 -04:00
|
|
|
<build>
|
|
|
|
<plugins>
|
2009-05-27 10:43:00 -04:00
|
|
|
<plugin>
|
2009-03-24 08:20:29 -04:00
|
|
|
<!--
|
|
|
|
javadoc plugin doesn't copy resources like the normal jar plugin.
|
|
|
|
Unzip license,etc from normal jar and add to javadoc jar.
|
|
|
|
-->
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>javadoc.resources</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<!-- create output dir for nested parent poms -->
|
|
|
|
<mkdir dir="${project.build.directory}" />
|
|
|
|
<unzip dest="${project.build.directory}/apidocs">
|
|
|
|
<patternset>
|
|
|
|
<include name="META-INF/*.txt" />
|
|
|
|
</patternset>
|
|
|
|
<fileset dir="${project.build.directory}">
|
|
|
|
<include name="${artifactId}-${pom.version}.jar" />
|
|
|
|
</fileset>
|
|
|
|
</unzip>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2008-05-21 10:15:45 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-javadoc</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
2008-06-11 12:48:56 -04:00
|
|
|
<execution>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals><goal>javadoc</goal></goals>
|
|
|
|
<configuration>
|
|
|
|
<additionalparam>
|
|
|
|
${javadoc.additionalparam}
|
|
|
|
</additionalparam>
|
|
|
|
<aggregate>true</aggregate>
|
|
|
|
<subpackages>org.apache.openjpa</subpackages>
|
|
|
|
<verbose>false</verbose>
|
|
|
|
<maxmemory>512m</maxmemory>
|
|
|
|
<links>
|
2010-02-24 15:51:59 -05:00
|
|
|
<link>http://java.sun.com/j2se/1.5.0/docs/api</link>
|
2010-02-18 21:52:51 -05:00
|
|
|
<link>http://java.sun.com/javaee/6/docs/api</link>
|
2008-06-11 12:48:56 -04:00
|
|
|
<link>http://jakarta.apache.org/commons/collections/api-release</link>
|
|
|
|
</links>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>sign-artifacts</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>sign</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-release-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<useReleaseProfile>false</useReleaseProfile>
|
2008-07-21 11:21:44 -04:00
|
|
|
<goals>deploy site site-deploy</goals>
|
2010-07-28 15:24:33 -04:00
|
|
|
<arguments>-Papache-release,docbook-profile,test-derby -DskipTests=true</arguments>
|
2008-06-11 12:48:56 -04:00
|
|
|
<autoVersionSubmodules>true</autoVersionSubmodules>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2010-06-09 11:18:43 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.rat</groupId>
|
|
|
|
<artifactId>apache-rat-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludeSubProjects>false</excludeSubProjects>
|
|
|
|
<numUnapprovedLicenses>0</numUnapprovedLicenses>
|
|
|
|
<excludes>
|
|
|
|
<!-- comments are usupported in services files -->
|
|
|
|
<exclude>**/javax.persistence.spi.PersistenceProvider</exclude>
|
|
|
|
<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 internal build-only repository -->
|
|
|
|
<exclude>**/internal-repository/**</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2008-05-21 10:15:45 -04:00
|
|
|
</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>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>sign-artifacts</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>sign</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</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>
|
|
|
|
<!--
|
|
|
|
Javadoc profile. Docs can be built by running:
|
|
|
|
mvn process-resources -Dtest=false -Pjavadoc-profile
|
|
|
|
-->
|
|
|
|
<id>javadoc-profile</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals><goal>javadoc</goal></goals>
|
|
|
|
<configuration>
|
|
|
|
<additionalparam>
|
|
|
|
${javadoc.additionalparam}
|
|
|
|
</additionalparam>
|
|
|
|
<aggregate>true</aggregate>
|
|
|
|
<subpackages>org.apache.openjpa</subpackages>
|
|
|
|
|
|
|
|
<verbose>false</verbose>
|
|
|
|
<!-- <linksource>true</linksource> -->
|
|
|
|
<maxmemory>512m</maxmemory>
|
|
|
|
<links>
|
2010-02-24 15:51:59 -05:00
|
|
|
<link>http://java.sun.com/j2se/1.5.0/docs/api</link>
|
2010-02-18 21:52:51 -05:00
|
|
|
<link>http://java.sun.com/javaee/6/docs/api</link>
|
2007-07-03 18:42:39 -04:00
|
|
|
<link>http://jakarta.apache.org/commons/collections/api-release</link>
|
|
|
|
</links>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</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>
|
|
|
|
<test.jvm.arguments>-Xmx${test.jvm.maxheapsize} -XX:MaxPermSize=${test.jvm.maxpermsize} -agentlib:jdwp=transport=dt_socket,server=y,address=8000</test.jvm.arguments>
|
|
|
|
</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>
|
|
|
|
<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
|
|
|
|
2010-02-23 16:55:49 -05:00
|
|
|
<!-- Use this profile to build/execute the junits w/ a 1.5 JDK
|
|
|
|
Note: You must also specific a DB test profile, like test-derby
|
|
|
|
and provide -Djava5.home=<path to 1.5 JDK, like /opt/jdk1.5.0_22>
|
|
|
|
-->
|
2009-06-29 14:54:32 -04:00
|
|
|
<profile>
|
2010-02-23 16:55:49 -05:00
|
|
|
<id>test-java5</id>
|
2009-06-29 14:54:32 -04:00
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
2010-02-23 16:55:49 -05:00
|
|
|
<java5.home>"java5.home - Must be user supplied"</java5.home>
|
|
|
|
</properties>
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
2010-04-05 16:02:35 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2010-02-23 16:55:49 -05:00
|
|
|
<configuration>
|
2010-04-05 16:02:35 -04:00
|
|
|
<source>1.5</source>
|
|
|
|
<target>1.5</target>
|
2010-02-23 16:55:49 -05:00
|
|
|
<excludes>
|
2010-04-05 16:02:35 -04:00
|
|
|
<exclude>none</exclude>
|
2010-02-23 16:55:49 -05:00
|
|
|
</excludes>
|
|
|
|
<testExcludes>
|
2010-04-05 16:02:35 -04:00
|
|
|
<exclude>**</exclude>
|
2010-02-23 16:55:49 -05:00
|
|
|
</testExcludes>
|
|
|
|
</configuration>
|
2010-04-05 16:02:35 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>compile-java5</id>
|
|
|
|
<configuration>
|
|
|
|
<fork>true</fork>
|
|
|
|
<executable>${java5.home}/bin/javac</executable>
|
|
|
|
<compilerVersion>1.5</compilerVersion>
|
|
|
|
<maxmem>${test.jvm.maxheapsize}</maxmem>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**</exclude>
|
|
|
|
</excludes>
|
|
|
|
<testExcludes>
|
|
|
|
<exclude>none</exclude>
|
|
|
|
</testExcludes>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>testCompile</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2010-02-23 16:55:49 -05:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<jvm>${java5.home}/bin/java</jvm>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!-- 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>
|
|
|
|
<version>${derby.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</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 />
|
2009-06-29 14:54:32 -04:00
|
|
|
</properties>
|
|
|
|
</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>
|
|
|
|
</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 />
|
|
|
|
</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>
|
|
|
|
<version>${derby.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
|
|
|
<openjpa.derbynet.url>jdbc:derby://localhost:1527/openjpa20;create=true;traceDirectory=target;traceFile=derby.log</openjpa.derbynet.url>
|
|
|
|
<openjpa.derbynet.driver>org.apache.derby.jdbc.ClientDriver</openjpa.derbynet.driver>
|
|
|
|
<!-- Note: commons-dbcp requires dummy values for uid/pwd -->
|
|
|
|
<openjpa.derbynet.username>uid</openjpa.derbynet.username>
|
|
|
|
<openjpa.derbynet.password>pwd</openjpa.derbynet.password>
|
|
|
|
<connection.driver.name>${openjpa.derbynet.driver}</connection.driver.name>
|
|
|
|
<connection.url>${openjpa.derbynet.url}</connection.url>
|
|
|
|
<connection.username>${openjpa.derbynet.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.derbynet.password}</connection.password>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
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>
|
|
|
|
<groupId>commons-pool</groupId>
|
|
|
|
<artifactId>commons-pool</artifactId>
|
2009-10-28 17:14:20 -04:00
|
|
|
<version>1.5.3</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-logging</groupId>
|
|
|
|
<artifactId>commons-logging</artifactId>
|
|
|
|
<version>1.0.4</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-lang</groupId>
|
|
|
|
<artifactId>commons-lang</artifactId>
|
2010-05-20 15:48:54 -04:00
|
|
|
<version>2.4</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-collections</groupId>
|
|
|
|
<artifactId>commons-collections</artifactId>
|
2009-08-11 09:51:42 -04:00
|
|
|
<version>3.2.1</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>net.sourceforge.serp</groupId>
|
|
|
|
<artifactId>serp</artifactId>
|
|
|
|
<version>1.13.1</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
2008-11-17 17:56:14 -05:00
|
|
|
<artifactId>geronimo-jpa_2.0_spec</artifactId>
|
2010-05-11 12:23:23 -04:00
|
|
|
<version>1.1</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
|
|
<artifactId>geronimo-jms_1.1_spec</artifactId>
|
2009-01-30 17:10:31 -05:00
|
|
|
<version>1.1.1</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
|
|
<artifactId>geronimo-jta_1.1_spec</artifactId>
|
2009-01-30 17:10:31 -05:00
|
|
|
<version>1.1.1</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
2009-05-18 13:05:48 -04:00
|
|
|
<dependency>
|
2009-06-03 09:22:05 -04:00
|
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
|
|
<artifactId>geronimo-validation_1.0_spec</artifactId>
|
2010-05-11 12:23:23 -04:00
|
|
|
<version>1.1</version>
|
2009-05-18 13:05:48 -04:00
|
|
|
</dependency>
|
2010-06-21 15:12:34 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.bval</groupId>
|
|
|
|
<artifactId>org.apache.bval.bundle</artifactId>
|
|
|
|
<version>0.1-incubating</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-beanutils</groupId>
|
|
|
|
<artifactId>commons-beanutils</artifactId>
|
|
|
|
<version>1.8.3</version>
|
|
|
|
</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>
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-dbcp</groupId>
|
|
|
|
<artifactId>commons-dbcp</artifactId>
|
2009-08-11 09:51:42 -04:00
|
|
|
<version>1.2.2</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.xml.bind</groupId>
|
|
|
|
<artifactId>jaxb-api</artifactId>
|
|
|
|
<version>2.0</version>
|
|
|
|
</dependency>
|
2008-12-23 18:21:11 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.sun.xml.bind</groupId>
|
|
|
|
<artifactId>jaxb-impl</artifactId>
|
|
|
|
<version>2.0.5</version>
|
|
|
|
</dependency>
|
2007-10-03 05:10:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>hsqldb</groupId>
|
|
|
|
<artifactId>hsqldb</artifactId>
|
2009-10-30 11:33:39 -04:00
|
|
|
<version>${hsqldb.version}</version>
|
2007-10-03 05:10:54 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>jakarta-regexp</groupId>
|
|
|
|
<artifactId>jakarta-regexp</artifactId>
|
|
|
|
<version>1.4</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
<version>1.2.13</version>
|
|
|
|
</dependency>
|
2010-07-20 15:17:57 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
<version>${slf4jVersion}</version>
|
|
|
|
</dependency>
|
2007-10-03 05:10:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>ant</groupId>
|
|
|
|
<artifactId>ant</artifactId>
|
|
|
|
<version>1.6.5</version>
|
|
|
|
</dependency>
|
2009-05-28 14:31:12 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jmock</groupId>
|
|
|
|
<artifactId>jmock</artifactId>
|
|
|
|
<version>2.5.1</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jmock</groupId>
|
|
|
|
<artifactId>jmock-junit3</artifactId>
|
|
|
|
<version>2.5.1</version>
|
|
|
|
</dependency>
|
2010-06-21 15:12:34 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<version>3.8.1</version>
|
|
|
|
</dependency>
|
2010-06-30 08:24:04 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>net.sourceforge.findbugs</groupId>
|
|
|
|
<artifactId>annotations</artifactId>
|
|
|
|
<version>1.3.2</version>
|
|
|
|
</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>
|
2010-06-30 08:24:04 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>net.sourceforge.findbugs</groupId>
|
|
|
|
<artifactId>annotations</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2007-07-03 18:42:39 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
2009-10-28 10:45:15 -04:00
|
|
|
|
2007-07-03 18:42:39 -04:00
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
2010-02-23 11:25:19 -05:00
|
|
|
<source>1.5</source>
|
|
|
|
<target>1.5</target>
|
2010-07-28 15:24:33 -04:00
|
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
2007-07-03 18:42:39 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
|
|
|
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
|
|
</manifest>
|
2010-07-28 15:24:33 -04:00
|
|
|
<manifestEntries>
|
|
|
|
<Implementation-Build>${buildNumber}</Implementation-Build>
|
2010-07-30 14:01:01 -04:00
|
|
|
<Specification-Title>JSR-317 Java Persistence API</Specification-Title>
|
2010-07-28 15:24:33 -04:00
|
|
|
<Specification-Vendor>Sun Microsystems, Inc.</Specification-Vendor>
|
|
|
|
<Specification-Version>2.0</Specification-Version>
|
|
|
|
</manifestEntries>
|
2007-07-03 18:42:39 -04:00
|
|
|
</archive>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2010-07-28 15:24:33 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-javadocs</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>javadoc</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<additionalparam>
|
|
|
|
${javadoc.additionalparam}
|
|
|
|
</additionalparam>
|
|
|
|
<aggregate>true</aggregate>
|
|
|
|
<subpackages>org.apache.openjpa</subpackages>
|
|
|
|
<!-- <linksource>true</linksource> -->
|
|
|
|
<verbose>false</verbose>
|
|
|
|
<maxmemory>512m</maxmemory>
|
|
|
|
<links>
|
|
|
|
<link>http://java.sun.com/j2se/1.5.0/docs/api</link>
|
|
|
|
<link>http://java.sun.com/javaee/6/docs/api</link>
|
|
|
|
<link>http://jakarta.apache.org/commons/collections/api-release</link>
|
|
|
|
</links>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2007-07-03 18:42:39 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
2010-07-28 15:24:33 -04:00
|
|
|
<version>2.5</version>
|
2007-07-03 18:42:39 -04:00
|
|
|
<configuration>
|
|
|
|
<argLine>${surefire.jvm.args}</argLine>
|
|
|
|
<useFile>false</useFile>
|
|
|
|
<trimStackTrace>false</trimStackTrace>
|
|
|
|
<useSystemClassLoader>true</useSystemClassLoader>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2010-07-28 15:24:33 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-report-plugin</artifactId>
|
|
|
|
<version>2.5</version>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>findbugs-maven-plugin</artifactId>
|
|
|
|
<version>2.3.1</version>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
|
|
|
<version>1.0-beta-4</version>
|
|
|
|
<configuration>
|
|
|
|
<getRevisionOnlyOnce>true</getRevisionOnlyOnce>
|
|
|
|
<revisionOnScmFailure>offline</revisionOnScmFailure>
|
|
|
|
</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>
|
|
|
|
<version>0.6</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2010-07-28 15:24:33 -04:00
|
|
|
<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>
|
|
|
|
</plugin>
|
|
|
|
<!-- inherited from apache-7.pom, but need config updates -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-release-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<useReleaseProfile>false</useReleaseProfile>
|
|
|
|
<goals>deploy site site-deploy</goals>
|
|
|
|
<arguments>-Papache-release,docbook-profile,test-derby -DskipTests=true</arguments>
|
|
|
|
<autoVersionSubmodules>true</autoVersionSubmodules>
|
|
|
|
</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-resources-plugin</artifactId>
|
2010-02-25 13:10:37 -05:00
|
|
|
<version>2.4.2</version>
|
2009-02-04 10:12:58 -05:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-site-plugin</artifactId>
|
2010-02-25 13:10:37 -05:00
|
|
|
<version>2.0.1</version>
|
2009-02-04 10:12:58 -05:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
2010-02-25 13:10:37 -05:00
|
|
|
<version>2.2-beta-5</version>
|
2009-02-04 10:12:58 -05:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<version>1.3</version>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.ant</groupId>
|
|
|
|
<artifactId>ant-jsch</artifactId>
|
|
|
|
<version>1.7.0</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
2010-02-25 13:10:37 -05:00
|
|
|
<version>1.0</version>
|
2009-02-04 10:12:58 -05:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
2010-02-25 13:10:37 -05:00
|
|
|
<version>2.6.1</version>
|
2009-02-04 10:12:58 -05:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-release-plugin</artifactId>
|
2010-02-25 11:50:33 -05:00
|
|
|
<version>2.0</version>
|
2009-02-04 10:12:58 -05:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
2009-10-28 10:45:15 -04:00
|
|
|
<version>2.1.1</version>
|
2009-02-04 10:12:58 -05:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
2010-02-25 13:10:37 -05:00
|
|
|
<version>2.1.2</version>
|
2009-02-04 10:12:58 -05:00
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>taglist-maven-plugin</artifactId>
|
|
|
|
<version>2.3</version>
|
|
|
|
</plugin>
|
2009-05-27 10:43:00 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-remote-resources-plugin</artifactId>
|
|
|
|
<version>1.0</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>process</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<resourceBundles>
|
|
|
|
<resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
|
|
|
|
</resourceBundles>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2009-02-04 10:12:58 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>ianal-maven-plugin</artifactId>
|
|
|
|
<version>1.0-alpha-1</version>
|
2010-07-28 15:24:33 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>verify-legal-files</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<!-- Fail the build if any artifacts are missing legal files -->
|
|
|
|
<strict>true</strict>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
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>
|
2010-02-25 13:10:37 -05:00
|
|
|
<version>1.3.1</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>
|
|
|
|
<version>2.2</version>
|
2009-06-17 14:26:59 -04:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.codehaus.plexus</groupId>
|
|
|
|
<artifactId>plexus-velocity</artifactId>
|
|
|
|
<version>1.1.3</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
2009-04-07 09:43:53 -04:00
|
|
|
</plugin>
|
2009-05-20 16:42:47 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.felix</groupId>
|
|
|
|
<artifactId>maven-bundle-plugin</artifactId>
|
2010-07-21 14:32:43 -04:00
|
|
|
<version>2.0.1</version>
|
|
|
|
<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>
|
2009-10-22 15:51:29 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<version>1.0-beta-1</version>
|
|
|
|
</plugin>
|
2010-04-22 10:19:52 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>openjpa-maven-plugin</artifactId>
|
|
|
|
<version>1.1</version>
|
|
|
|
</plugin>
|
2010-06-14 17:38:14 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>findbugs-maven-plugin</artifactId>
|
|
|
|
<version>2.3.1</version>
|
|
|
|
</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>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
</plugin>
|
2009-05-27 10:43:00 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-remote-resources-plugin</artifactId>
|
|
|
|
</plugin>
|
2010-03-23 11:00:12 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-sources</id>
|
|
|
|
<phase>${createSource}</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
<goal>test-jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2009-02-04 10:12:58 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>ianal-maven-plugin</artifactId>
|
2010-07-28 15:24:33 -04:00
|
|
|
</plugin>
|
|
|
|
<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-03 17:15:01 -04:00
|
|
|
<configLocation>${checkstyle.config.location}</configLocation>
|
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>
|
2009-06-15 13:08:00 -04:00
|
|
|
<excludes>**/*_.java</excludes>
|
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>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireMavenVersion>
|
2010-05-26 16:25:32 -04:00
|
|
|
<version>[2.2.1,)</version>
|
2009-10-22 15:51:29 -04:00
|
|
|
</requireMavenVersion>
|
|
|
|
<requireJavaVersion>
|
2010-02-18 13:46:11 -05:00
|
|
|
<version>[1.6,)</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>
|
|
|
|
</plugin>
|
2010-01-28 11:38:52 -05:00
|
|
|
<!-- this has to be done in each module so we don't generate
|
|
|
|
tests.jar artifacts that fail the IANAL check
|
2009-12-01 16:35:28 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-tests</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test-jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2010-01-28 11:38:52 -05:00
|
|
|
-->
|
2010-06-14 17:38:14 -04:00
|
|
|
<!-- Don't include in all builds for now
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>findbugs-maven-plugin</artifactId>
|
|
|
|
</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>
|
|
|
|
<reportSets>
|
|
|
|
<reportSet>
|
|
|
|
<reports>
|
|
|
|
<report>jdepend-maven-plugin</report>
|
|
|
|
<!-- <report>jxr-maven-plugin</report> -->
|
|
|
|
<report>surefire-report-maven-plugin</report>
|
|
|
|
<report>maven-javadoc-plugin</report>
|
|
|
|
<report>mailing-list</report>
|
|
|
|
<report>issue-tracking</report>
|
|
|
|
<report>license</report>
|
|
|
|
</reports>
|
|
|
|
</reportSet>
|
|
|
|
</reportSets>
|
|
|
|
</plugin>
|
|
|
|
<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-surefire-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>taglist-maven-plugin</artifactId>
|
|
|
|
</plugin>
|
2009-04-02 23:09:53 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
2010-02-24 17:33:31 -05:00
|
|
|
<version>2.2</version>
|
2009-04-02 23:09:53 -04:00
|
|
|
<configuration>
|
2009-04-03 17:15:01 -04:00
|
|
|
<configLocation>${checkstyle.config.location}</configLocation>
|
2009-05-27 20:22:33 -04:00
|
|
|
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
2009-06-15 13:08:00 -04:00
|
|
|
<excludes>**/*_.java</excludes>
|
2009-04-02 23:09:53 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2010-06-14 17:38:14 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>findbugs-maven-plugin</artifactId>
|
|
|
|
</plugin>
|
2007-07-03 18:42:39 -04:00
|
|
|
</plugins>
|
|
|
|
</reporting>
|
|
|
|
|
|
|
|
</project>
|