2009-06-10 16:44: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
|
2011-12-14 19:07:18 -05:00
|
|
|
|
2009-06-10 16:44:39 -04:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2011-12-14 19:07:18 -05:00
|
|
|
|
2009-06-10 16:44: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
|
2011-12-14 19:07:18 -05:00
|
|
|
under the License.
|
2009-06-10 16:44:39 -04:00
|
|
|
-->
|
2011-12-14 19:07:18 -05:00
|
|
|
<!--
|
|
|
|
Maven release plugin requires the project tag to be on a single line.
|
2009-06-10 16:44:39 -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-07-07 11:55:10 -04:00
|
|
|
|
2009-06-10 16:44:39 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-integration</artifactId>
|
2012-02-20 15:37:05 -05:00
|
|
|
<version>2.3.0-SNAPSHOT</version>
|
2009-06-10 16:44:39 -04:00
|
|
|
</parent>
|
|
|
|
|
2010-08-10 08:54:23 -04:00
|
|
|
<groupId>org.apache.openjpa</groupId>
|
2009-06-10 16:44:39 -04:00
|
|
|
<artifactId>openjpa-integration-validation</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
<name>OpenJPA Integration Tests - Bean Validation</name>
|
|
|
|
<description>OpenJPA Integration Tests - Bean Validation</description>
|
|
|
|
|
|
|
|
<profiles>
|
2010-05-11 11:38:44 -04:00
|
|
|
<!-- Default profile for testing with Apache BVAL provider -->
|
|
|
|
<!-- See http://incubator.apache.org/projects/beanvalidation.html -->
|
2009-06-10 16:44:39 -04:00
|
|
|
<profile>
|
2010-05-11 11:38:44 -04:00
|
|
|
<id>bval</id>
|
2009-06-10 16:44:39 -04:00
|
|
|
<activation>
|
2010-05-11 11:38:44 -04:00
|
|
|
<activeByDefault>true</activeByDefault>
|
2009-06-10 16:44:39 -04:00
|
|
|
<property>
|
2010-05-11 11:38:44 -04:00
|
|
|
<name>bval</name>
|
2009-06-10 16:44:39 -04:00
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
2010-08-13 16:33:50 -04:00
|
|
|
<!-- use openjpa-all which includes Apache BVal and depends -->
|
2009-06-16 16:11:45 -04:00
|
|
|
<dependency>
|
2010-08-13 16:33:50 -04:00
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-all</artifactId>
|
|
|
|
<version>${project.version}</version>
|
2009-10-02 14:33:59 -04:00
|
|
|
</dependency>
|
2009-06-10 16:44:39 -04:00
|
|
|
</dependencies>
|
|
|
|
</profile>
|
|
|
|
|
2010-05-11 11:38:44 -04:00
|
|
|
<!-- Profile for testing with Hibernate Bean Validation RI -->
|
2009-06-10 16:44:39 -04:00
|
|
|
<profile>
|
|
|
|
<id>hibernate</id>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>hibernate</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
2010-08-13 16:33:50 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa</artifactId>
|
2010-08-19 13:31:55 -04:00
|
|
|
<version>${project.version}</version>
|
2010-08-13 16:33:50 -04:00
|
|
|
<!-- allow profiles to decide which validation spec to use -->
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
|
|
<artifactId>geronimo-validation_1.0_spec</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
2009-06-10 16:44:39 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.validation</groupId>
|
|
|
|
<artifactId>validation-api</artifactId>
|
2009-10-13 11:26:41 -04:00
|
|
|
<version>1.0.0.GA</version>
|
2009-06-10 16:44:39 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2009-10-13 11:26:41 -04:00
|
|
|
<!-- Hibernate that implements 1.0.0.GA -->
|
2009-06-10 16:44:39 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.hibernate</groupId>
|
|
|
|
<artifactId>hibernate-validator</artifactId>
|
2010-09-15 14:02:32 -04:00
|
|
|
<version>4.0.2.GA</version>
|
2009-06-10 16:44:39 -04:00
|
|
|
<scope>test</scope>
|
2009-07-13 13:47:31 -04:00
|
|
|
<exclusions>
|
2009-07-15 16:48:08 -04:00
|
|
|
<!-- force usage of the geronimo-jpa_2.0_spec -->
|
2009-07-13 13:47:31 -04:00
|
|
|
<exclusion>
|
|
|
|
<groupId>org.hibernate.java-persistence</groupId>
|
|
|
|
<artifactId>jpa-api</artifactId>
|
|
|
|
</exclusion>
|
2009-07-15 16:48:08 -04:00
|
|
|
<!-- force usage of the RI API level above -->
|
|
|
|
<exclusion>
|
|
|
|
<groupId>javax.validation</groupId>
|
|
|
|
<artifactId>validation-api</artifactId>
|
|
|
|
</exclusion>
|
2009-07-13 13:47:31 -04:00
|
|
|
</exclusions>
|
2009-06-10 16:44:39 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
<version>1.5.6</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
|
|
<version>1.5.6</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>repository.jboss.org</id>
|
2010-09-15 14:02:32 -04:00
|
|
|
<name>JBoss Nexus Repository</name>
|
|
|
|
<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
|
2009-06-10 16:44:39 -04:00
|
|
|
<layout>default</layout>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>false</enabled>
|
|
|
|
</snapshots>
|
|
|
|
<releases>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
</releases>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
2010-09-13 13:53:00 -04:00
|
|
|
<artifactId>openjpa</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<!-- allow profiles to decide which validation spec to use -->
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
|
|
<artifactId>geronimo-validation_1.0_spec</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-persistence-jdbc</artifactId>
|
2010-08-19 13:31:55 -04:00
|
|
|
<version>${project.version}</version>
|
2010-02-24 15:24:17 -05:00
|
|
|
<type>test-jar</type>
|
2009-06-10 16:44:39 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>jakarta-regexp</groupId>
|
|
|
|
<artifactId>jakarta-regexp</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2011-12-14 19:07:18 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.bval</groupId>
|
|
|
|
<artifactId>org.apache.bval.bundle</artifactId>
|
|
|
|
<version>0.3-incubating</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-simple</artifactId>
|
|
|
|
<version>${slf4jVersion}</version>
|
|
|
|
</dependency>
|
2009-06-10 16:44:39 -04:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2010-09-13 13:53:00 -04:00
|
|
|
<!-- Extract the common test support files from o-p-j-tests.jar -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>unpack</id>
|
|
|
|
<phase>test-compile</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-persistence-jdbc</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
|
|
|
|
<includes>org/apache/openjpa/persistence/test/*.class</includes>
|
|
|
|
</artifactItem>
|
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
2010-01-25 16:50:14 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
2009-06-10 16:44:39 -04:00
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2010-10-01 16:24:41 -04:00
|
|
|
<phase>process-test-classes</phase>
|
2009-06-10 16:44:39 -04:00
|
|
|
<configuration>
|
2011-12-14 19:07:18 -05:00
|
|
|
<tasks>
|
2009-06-10 16:44:39 -04:00
|
|
|
<ant antfile="src/main/ant/enhancer.xml" target="enhance" inheritRefs="true">
|
|
|
|
<property name="maven.test.skip" value="${maven.test.skip}" />
|
|
|
|
<property name="test" value="${test}" />
|
|
|
|
<property name="outdir" value="${project.build.outputDirectory}" />
|
|
|
|
<property name="project.build.testOutputDirectory" value="${project.build.testOutputDirectory}" />
|
2010-03-16 14:44:11 -04:00
|
|
|
<property name="openjpa.Log" value="${openjpa.Log}" />
|
2009-06-10 16:44:39 -04:00
|
|
|
<property name="build.enhance" value="${build.enhance}" />
|
|
|
|
</ant>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
2011-12-14 19:07:18 -05:00
|
|
|
<!-- exclude classes that end with 'Test'; these
|
2009-06-10 16:44:39 -04:00
|
|
|
are not test cases per OpenJPA standards -->
|
|
|
|
<exclude>org/apache/openjpa/**/*Test.java</exclude>
|
|
|
|
|
|
|
|
<!-- exclude classes that include a $; inner classes
|
|
|
|
are not test cases per OpenJPA standards -->
|
|
|
|
<exclude>org/apache/openjpa/**/*$*.class</exclude>
|
|
|
|
<exclude>org/apache/openjpa/**/*.*.class</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</project>
|