2006-10-09 21:30:54 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2006-11-12 06:44:59 -05:00
|
|
|
<!--
|
|
|
|
Copyright 2006 The Apache Software Foundation.
|
|
|
|
|
|
|
|
Licensed 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.
|
|
|
|
-->
|
2006-10-09 21:30:54 -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">
|
|
|
|
<!--
|
|
|
|
To build the distribution files from project root:
|
|
|
|
|
|
|
|
mvn clean compile package -Dtest=false
|
2006-10-19 20:55:47 -04:00
|
|
|
|
|
|
|
To build and deploy a full digned release with docs, run:
|
|
|
|
|
|
|
|
mvn clean deploy -Pjavadoc-profile,docbook-profile,sign-release
|
|
|
|
|
2006-10-19 20:57:35 -04:00
|
|
|
Note that to sign the release, you need to have "gpg" installed and
|
|
|
|
create a key. See http://apache.org/dev/release-signing.html
|
2006-10-09 21:30:54 -04:00
|
|
|
-->
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>openjpa-project</artifactId>
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
<name>OpenJPA Distribution</name>
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa</artifactId>
|
2006-11-12 17:28:45 -05:00
|
|
|
<version>0.9.7-incubating-SNAPSHOT</version>
|
2006-10-09 21:30:54 -04:00
|
|
|
</parent>
|
2006-10-19 20:55:47 -04:00
|
|
|
|
|
|
|
<properties>
|
|
|
|
<openjpa.release.keyAlias>${user.name}@apache.org</openjpa.release.keyAlias>
|
|
|
|
<openjpa.assembly.finalName>openjpa-${version}</openjpa.assembly.finalName>
|
|
|
|
<openjpa.assembly.outputDirectory>${project.basedir}/target/assembly</openjpa.assembly.outputDirectory>
|
2006-11-07 23:16:46 -05:00
|
|
|
|
|
|
|
<openjpa.assembly.binarySuffix>binary</openjpa.assembly.binarySuffix>
|
|
|
|
<openjpa.assembly.binaryBase>${openjpa.assembly.outputDirectory}/${openjpa.assembly.finalName}-${openjpa.assembly.binarySuffix}</openjpa.assembly.binaryBase>
|
|
|
|
<openjpa.assembly.binaryFile>${openjpa.assembly.binaryBase}.zip</openjpa.assembly.binaryFile>
|
|
|
|
|
|
|
|
<openjpa.assembly.sourceSuffix>source</openjpa.assembly.sourceSuffix>
|
|
|
|
<openjpa.assembly.sourceBase>${openjpa.assembly.outputDirectory}/${openjpa.assembly.finalName}-${openjpa.assembly.sourceSuffix}</openjpa.assembly.sourceBase>
|
|
|
|
<openjpa.assembly.sourceFile>${openjpa.assembly.sourceBase}.zip</openjpa.assembly.sourceFile>
|
2007-01-30 22:08:42 -05:00
|
|
|
|
|
|
|
<docbook.version>1.67.2</docbook.version>
|
|
|
|
<local.repository>${settings.localRepository}</local.repository>
|
2006-10-19 20:55:47 -04:00
|
|
|
</properties>
|
|
|
|
|
2006-10-09 21:30:54 -04:00
|
|
|
<build>
|
|
|
|
<!-- needed to let maven pass the "compile" phase -->
|
|
|
|
<testSourceDirectory>/none/</testSourceDirectory>
|
|
|
|
|
|
|
|
<!-- filter site resources -->
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${project.basedir}/src/site</directory>
|
|
|
|
<!-- targetPath is relative to target/classes/ -->
|
|
|
|
<targetPath>../filtered-site</targetPath>
|
|
|
|
<filtering>false</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>bin</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>attached</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<descriptor>assembly.xml</descriptor>
|
2006-10-19 20:55:47 -04:00
|
|
|
<finalName>${openjpa.assembly.finalName}</finalName>
|
|
|
|
<outputDirectory>${openjpa.assembly.outputDirectory}</outputDirectory>
|
2006-10-09 21:30:54 -04:00
|
|
|
<workDirectory>target/work</workDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>sources</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>attached</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<descriptor>source-assembly.xml</descriptor>
|
|
|
|
<finalName>openjpa-${version}</finalName>
|
|
|
|
<outputDirectory>${project.basedir}/target/assembly</outputDirectory>
|
|
|
|
<workDirectory>target/work</workDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Copy over site files from src/site to target/filtered-site
|
|
|
|
so we can filter resources and include other generated
|
|
|
|
content from the openjpa-project module.
|
|
|
|
-->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>prefilter-site</id>
|
|
|
|
<phase>site</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>resources</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-site-plugin</artifactId>
|
|
|
|
<version>2.0-beta-5</version>
|
|
|
|
<configuration>
|
|
|
|
<siteDirectory>target/filtered-site</siteDirectory>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<!--
|
|
|
|
Docbook profile. Docs can be built by running:
|
|
|
|
mvn package -Dtest=false -Pjavadoc-profile,docbook-profile
|
|
|
|
-->
|
|
|
|
<profile>
|
|
|
|
<id>docbook-profile</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<!-- build the docs when creating the site from docbook source -->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2006-11-08 16:29:52 -05:00
|
|
|
<phase>process-resources</phase>
|
2006-10-09 21:30:54 -04:00
|
|
|
<configuration>
|
|
|
|
<!-- destdir="${project.build.directory}/site/manual" -->
|
|
|
|
<tasks>
|
|
|
|
<echo>Building docbook manual</echo>
|
|
|
|
|
2006-11-08 16:29:52 -05:00
|
|
|
<mkdir dir="${project.basedir}/target/stylesheets"/>
|
2007-01-30 22:08:42 -05:00
|
|
|
<available file="${local.repository}/docbook/docbook-xsl/${docbook.version}/docbook-xsl-${docbook.version}.zip" property="docbook.available"/>
|
|
|
|
<fail unless="docbook.available">Could not find docbook file: ${local.repository}/docbook/docbook-xsl/${docbook.version}/docbook-xsl-${docbook.version}.zip</fail>
|
|
|
|
|
|
|
|
<unzip src="${local.repository}/docbook/docbook-xsl/${docbook.version}/docbook-xsl-${docbook.version}.zip" dest="${project.basedir}/target/stylesheets/" overwrite="false"/>
|
2006-10-09 21:30:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
<style includes="**/manual.xml"
|
|
|
|
force="true"
|
|
|
|
basedir="${project.basedir}/src/doc/manual"
|
|
|
|
destdir="${project.basedir}/target/manual"
|
|
|
|
style="manual-xhtml.xsl"
|
|
|
|
classpathref="maven.runtime.classpath">
|
|
|
|
<factory name="org.apache.xalan.processor.TransformerFactoryImpl">
|
|
|
|
<attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
|
|
|
|
</factory>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<style includes="**/manual.xml"
|
|
|
|
force="true"
|
|
|
|
basedir="${project.basedir}/src/doc/manual"
|
|
|
|
destdir="${project.basedir}/target/manual"
|
|
|
|
style="manual-xhtml-chunk.xsl"
|
|
|
|
classpathref="maven.runtime.classpath">
|
|
|
|
<factory name="org.apache.xalan.processor.TransformerFactoryImpl">
|
|
|
|
<attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
|
|
|
|
</factory>
|
|
|
|
</style>
|
|
|
|
-->
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>builddocs</name>
|
|
|
|
<value>true</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
</profile>
|
2006-10-19 20:55:47 -04:00
|
|
|
|
|
|
|
<!-- sign the release files -->
|
|
|
|
<profile>
|
|
|
|
<id>sign-release</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2006-11-07 23:16:46 -05:00
|
|
|
<phase>verify</phase>
|
2006-10-19 20:55:47 -04:00
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<echo>Signing release files...</echo>
|
|
|
|
<macrodef name="sign-file">
|
|
|
|
<attribute name="file" />
|
|
|
|
<sequential>
|
|
|
|
<delete failonerror="false"
|
|
|
|
file="@{file}.asc"/>
|
|
|
|
<exec executable="gpg"
|
|
|
|
failonerror="true">
|
|
|
|
<arg value="--batch"/>
|
|
|
|
<arg value="--verbose"/>
|
|
|
|
<arg value="--default-key"/>
|
|
|
|
<arg value="${openjpa.release.keyAlias}"/>
|
|
|
|
<arg value="--armor"/>
|
|
|
|
<arg value="--detach-sig"/>
|
|
|
|
<arg value="@{file}"/>
|
|
|
|
</exec>
|
|
|
|
</sequential>
|
|
|
|
</macrodef>
|
2006-11-07 23:16:46 -05:00
|
|
|
<sign-file file="${openjpa.assembly.binaryFile}"/>
|
|
|
|
<sign-file file="${openjpa.assembly.sourceFile}"/>
|
2006-10-19 20:55:47 -04:00
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2006-11-07 23:16:46 -05:00
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-signature-artifacts</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>attach-artifact</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifacts>
|
|
|
|
<artifact>
|
|
|
|
<file>${openjpa.assembly.binaryFile}.asc</file>
|
|
|
|
<classifier>${openjpa.assembly.binarySuffix}.zip</classifier>
|
|
|
|
<type>asc</type>
|
|
|
|
</artifact>
|
|
|
|
<artifact>
|
|
|
|
<file>${openjpa.assembly.sourceFile}.asc</file>
|
|
|
|
<classifier>${openjpa.assembly.sourceSuffix}.zip</classifier>
|
|
|
|
<type>asc</type>
|
|
|
|
</artifact>
|
|
|
|
</artifacts>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2006-10-19 20:55:47 -04:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>sign</name>
|
|
|
|
<value>true</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
</profile>
|
2006-10-09 21:30:54 -04:00
|
|
|
</profiles>
|
|
|
|
|
|
|
|
<!-- need to explicitly list dependencies for assembly to work -->
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-all</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-lib</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-kernel</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-kernel-5</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.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-jdbc-5</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-persistence</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-persistence-jdbc</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-xmlstore</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
2006-10-28 00:06:11 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-examples</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
2006-10-09 21:30:54 -04:00
|
|
|
|
|
|
|
<!-- included so we can include it in the distribution -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.derby</groupId>
|
|
|
|
<artifactId>derby</artifactId>
|
2006-11-15 18:41:37 -05:00
|
|
|
<version>10.2.1.6</version>
|
2006-10-09 21:30:54 -04:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- jars needed for for docbook -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>ant</groupId>
|
|
|
|
<artifactId>ant</artifactId>
|
|
|
|
<version>1.6.5</version>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>ant</groupId>
|
|
|
|
<artifactId>ant-trax</artifactId>
|
|
|
|
<version>1.6.5</version>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>xalan</groupId>
|
|
|
|
<artifactId>xalan</artifactId>
|
|
|
|
<version>2.7.0</version>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>bcel</groupId>
|
|
|
|
<artifactId>bcel</artifactId>
|
|
|
|
<version>5.1</version>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
2007-01-30 22:08:42 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>docbook</groupId>
|
|
|
|
<artifactId>docbook-xsl</artifactId>
|
|
|
|
<version>${docbook.version}</version>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
<type>zip</type>
|
|
|
|
</dependency>
|
2006-10-09 21:30:54 -04:00
|
|
|
</dependencies>
|
|
|
|
</project>
|