mirror of https://github.com/apache/openjpa.git
327 lines
13 KiB
XML
327 lines
13 KiB
XML
<?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.
|
|
-->
|
|
<!--
|
|
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">
|
|
<parent>
|
|
<groupId>org.apache.openjpa</groupId>
|
|
<artifactId>openjpa-integration</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>openjpa-integration-osgi-itests</artifactId>
|
|
<version>2.0.0-SNAPSHOT</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>OpenJPA Integration Tests - OSGi</name>
|
|
<description>OpenJPA Integration Tests - OSGi</description>
|
|
|
|
<dependencies>
|
|
<!--
|
|
Note: Scope should be set to test for all depends
|
|
-->
|
|
<!-- OpenJPA runtime and depends -->
|
|
<dependency>
|
|
<groupId>org.apache.openjpa</groupId>
|
|
<artifactId>openjpa-osgi</artifactId>
|
|
<version>${version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
<artifactId>geronimo-jpa_2.0_spec</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
<artifactId>geronimo-jms_1.1_spec</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
<artifactId>geronimo-jta_1.1_spec</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- Not needed yet...
|
|
<dependency>
|
|
<groupId>org.apache.geronimo.specs</groupId>
|
|
<artifactId>geronimo-validation_1.0_spec</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
-->
|
|
<!-- Note: Overriding parent versions as these have bundle metadata -->
|
|
<dependency>
|
|
<groupId>commons-collections</groupId>
|
|
<artifactId>commons-collections</artifactId>
|
|
<version>3.2.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-lang</groupId>
|
|
<artifactId>commons-lang</artifactId>
|
|
<version>2.4</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-pool</groupId>
|
|
<artifactId>commons-pool</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- Testcase depends -->
|
|
<!--
|
|
<dependency>
|
|
<groupId>org.apache.openjpa</groupId>
|
|
<artifactId>openjpa-examples</artifactId>
|
|
<version>${version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
-->
|
|
<dependency>
|
|
<groupId>org.apache.derby</groupId>
|
|
<artifactId>derby</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- use the bundlized version of commons-dbcp from servicemix -->
|
|
<dependency>
|
|
<groupId>org.apache.servicemix.bundles</groupId>
|
|
<artifactId>org.apache.servicemix.bundles.commons-dbcp</artifactId>
|
|
<version>1.2.2_3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- Test framework depends -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.5</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.ops4j.pax.exam</groupId>
|
|
<artifactId>pax-exam</artifactId>
|
|
<version>0.5.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.ops4j.pax.exam</groupId>
|
|
<artifactId>pax-exam-junit</artifactId>
|
|
<version>0.5.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.ops4j.pax.exam</groupId>
|
|
<artifactId>pax-exam-container-default</artifactId>
|
|
<version>0.5.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.ops4j.pax.exam</groupId>
|
|
<artifactId>pax-exam-junit-extender-impl</artifactId>
|
|
<version>0.5.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.ops4j.pax.logging</groupId>
|
|
<artifactId>pax-logging-api</artifactId>
|
|
<version>1.3.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.ops4j.pax.logging</groupId>
|
|
<artifactId>pax-logging-service</artifactId>
|
|
<version>1.3.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.ops4j.pax.url</groupId>
|
|
<artifactId>pax-url-mvn</artifactId>
|
|
<version>0.3.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.felix</groupId>
|
|
<artifactId>org.osgi.core</artifactId>
|
|
<version>1.2.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- Apache Felix framework -->
|
|
<dependency>
|
|
<groupId>org.apache.felix</groupId>
|
|
<artifactId>org.apache.felix.configadmin</artifactId>
|
|
<version>1.0.10</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<!-- Note: This depend has to be after all the rest -->
|
|
<dependency>
|
|
<groupId>org.apache.felix</groupId>
|
|
<artifactId>org.apache.felix.main</artifactId>
|
|
<version>1.6.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>ops4j.releases</id>
|
|
<url>http://repository.ops4j.org/maven2</url>
|
|
</repository>
|
|
<repository>
|
|
<id>ops4j.snapshots</id>
|
|
<url>http://repository.ops4j.org/mvn-snapshots</url>
|
|
</repository>
|
|
</repositories>
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>ops4j.releases</id>
|
|
<url>http://repository.ops4j.org/maven2</url>
|
|
<snapshots>
|
|
<enabled>true</enabled>
|
|
</snapshots>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
|
|
<build>
|
|
<resources>
|
|
<!-- for source jar -->
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
</resource>
|
|
<!-- for test jar -->
|
|
<resource>
|
|
<directory>src/test/resources</directory>
|
|
</resource>
|
|
<!-- also include license and notice files in all the jars -->
|
|
<resource>
|
|
<directory>${basedir}/../../openjpa-project/</directory>
|
|
<includes>
|
|
<include>NOTICE.txt</include>
|
|
<include>LICENSE.txt</include>
|
|
<include>DISCLAIMER.txt</include>
|
|
</includes>
|
|
<targetPath>META-INF</targetPath>
|
|
</resource>
|
|
</resources>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<source>1.5</source>
|
|
<target>1.5</target>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>process-classes</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.outputDirectory" value="${project.build.outputDirectory}" />
|
|
<property name="openjpa.loglevel" value="${openjpa.loglevel}" />
|
|
<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-jar-plugin</artifactId>
|
|
<configuration>
|
|
<archive>
|
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.servicemix.tooling</groupId>
|
|
<artifactId>depends-maven-plugin</artifactId>
|
|
<version>1.1</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-depends-file</id>
|
|
<goals>
|
|
<goal>generate-depends-file</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.felix</groupId>
|
|
<artifactId>maven-bundle-plugin</artifactId>
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<instructions>
|
|
<Bundle-Name>${artifactId}</Bundle-Name>
|
|
<Bundle-SymbolicName>${groupId}.${artifactId};singleton=true</Bundle-SymbolicName>
|
|
<Bundle-DocURL>http://openjpa.apache.org/documentation.html</Bundle-DocURL>
|
|
<Bundle-Activator>hellojpa.Main</Bundle-Activator>
|
|
<!-- <Private-Package>hellojpa*,META-INF*</Private-Package> -->
|
|
<Import-Package>org.apache.openjpa.*,*</Import-Package>
|
|
<!-- <Export-Package></Export-Package> -->
|
|
<Require-Bundle>org.apache.geronimo.specs.geronimo-jpa_2.0_spec;bundle-version="[1.0.0,2.0.0)",org.apache.openjpa.openjpa-osgi;bundle-version="[2.0.0,3.0.0)"</Require-Bundle>
|
|
<!-- Eclipse metadata -->
|
|
<Eclipse-Autostart>false</Eclipse-Autostart>
|
|
</instructions>
|
|
<unpackBundle>true</unpackBundle>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>bundle-manifest</id>
|
|
<phase>process-classes</phase>
|
|
<goals>
|
|
<goal>manifest</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<forkMode>pertest</forkMode>
|
|
<argLine>${surefire.jvm.args}</argLine>
|
|
<excludes>
|
|
<!-- exclude everything for now.... -->
|
|
<exclude>org/apache/openjpa/**/Test*.java</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|