2008-07-16 20:09:55 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2009-10-02 10:36:30 -04:00
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
-->
|
|
|
|
<!--
|
|
|
|
Maven release plugin requires the project tag to be on a single line.
|
|
|
|
-->
|
2008-07-16 20:09:55 -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-23 12:27:27 -05:00
|
|
|
|
2009-08-04 13:43:22 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2010-02-23 12:27:27 -05:00
|
|
|
|
2009-08-04 13:43:22 -04:00
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-parent</artifactId>
|
2010-02-24 16:04:54 -05:00
|
|
|
<version>2.0.0-SNAPSHOT</version>
|
2009-08-04 13:43:22 -04:00
|
|
|
</parent>
|
2010-02-23 12:27:27 -05:00
|
|
|
|
2009-08-04 13:43:22 -04:00
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-slice</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
<name>OpenJPA Slice</name>
|
|
|
|
<description>OpenJPA Slice</description>
|
2010-02-23 12:27:27 -05:00
|
|
|
|
2009-08-04 13:43:22 -04:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-kernel</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-jdbc</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
|
|
<artifactId>geronimo-jpa_2.0_spec</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-persistence</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2009-06-10 11:55:14 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-persistence-jdbc</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
<classifier>tests</classifier>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2009-08-04 13:43:22 -04:00
|
|
|
</dependencies>
|
2010-02-23 12:27:27 -05:00
|
|
|
|
2009-08-04 13:43:22 -04:00
|
|
|
<profiles>
|
2010-01-20 15:53:57 -05:00
|
|
|
<!-- Default is to test with Embedded Derby, which is setup in
|
|
|
|
persistence.xml to create the required slices -->
|
2009-10-02 10:36:30 -04:00
|
|
|
|
|
|
|
<!-- Sample profile for testing with MySQL DB -->
|
2009-08-04 13:43:22 -04:00
|
|
|
<profile>
|
2009-10-02 10:36:30 -04:00
|
|
|
<!-- different id, so this doesn't run during automated testing -->
|
|
|
|
<id>test-mysql-slice</id>
|
2009-08-04 13:43:22 -04:00
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
<property>
|
2009-10-02 10:36:30 -04:00
|
|
|
<name>test-mysql-slice</name>
|
2009-08-04 13:43:22 -04:00
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
2009-10-02 10:36:30 -04:00
|
|
|
<version>${mysql.version}</version>
|
2009-08-04 13:43:22 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<properties>
|
2009-10-02 10:36:30 -04:00
|
|
|
<connection.driver.name>com.mysql.jdbc.Driver</connection.driver.name>
|
2009-08-04 13:43:22 -04:00
|
|
|
<connection.url>${openjpa.mysql.url}</connection.url>
|
2009-10-02 10:36:30 -04:00
|
|
|
<connection.username>${openjpa.mysql.username}</connection.username>
|
|
|
|
<connection.password>${openjpa.mysql.password}</connection.password>
|
2010-02-23 12:27:27 -05:00
|
|
|
<!-- DBCP overrides for MySQL testing -->
|
|
|
|
<dbcp.maxIdle>0</dbcp.maxIdle>
|
|
|
|
<dbcp.minIdle>0</dbcp.minIdle>
|
2009-08-04 13:43:22 -04:00
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2010-02-23 12:27:27 -05:00
|
|
|
|
2009-08-04 13:43:22 -04:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>test-compile</phase>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<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-08-04 13:43:22 -04:00
|
|
|
</ant>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2010-01-25 16:50:14 -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>
|
2009-03-18 08:37:31 -04:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<argLine>${test.jvm.arguments}</argLine>
|
|
|
|
<systemProperties>
|
|
|
|
<property>
|
|
|
|
<name>openjpa.Log</name>
|
2010-03-16 14:44:11 -04:00
|
|
|
<value>${openjpa.Log}</value>
|
2009-03-18 08:37:31 -04:00
|
|
|
</property>
|
|
|
|
<property>
|
|
|
|
<name>derby.stream.error.file</name>
|
|
|
|
<value>target/derby.log</value>
|
|
|
|
</property>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2009-08-04 13:43:22 -04:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2009-08-04 14:35:09 -04:00
|
|
|
</project>
|