2006-10-09 21:30:54 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2006-11-12 06:44:59 -05:00
|
|
|
<!--
|
2007-04-14 17:50:17 -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
|
2006-11-12 06:44:59 -05:00
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
2007-04-14 17:50:17 -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
|
|
|
|
under the License.
|
2006-11-12 06:44:59 -05:00
|
|
|
-->
|
2008-06-11 12:48:56 -04:00
|
|
|
<!--
|
|
|
|
Please keep the project tag on one line to avoid confusing
|
|
|
|
the release plugin.
|
|
|
|
-->
|
|
|
|
<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">
|
2006-10-09 21:30:54 -04:00
|
|
|
<!--
|
|
|
|
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>
|
2007-05-09 18:23:54 -04:00
|
|
|
<artifactId>apache-openjpa</artifactId>
|
2006-10-09 21:30:54 -04:00
|
|
|
<packaging>pom</packaging>
|
|
|
|
<name>OpenJPA Distribution</name>
|
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
2007-05-09 18:23:54 -04:00
|
|
|
<artifactId>openjpa-parent</artifactId>
|
2008-04-08 15:40:02 -04:00
|
|
|
<version>1.2.0-SNAPSHOT</version>
|
2006-10-09 21:30:54 -04:00
|
|
|
</parent>
|
2006-10-19 20:55:47 -04:00
|
|
|
|
|
|
|
<properties>
|
2007-04-21 20:03:29 -04:00
|
|
|
<openjpa.release.keyAlias>
|
|
|
|
${user.name}@apache.org
|
|
|
|
</openjpa.release.keyAlias>
|
2007-08-14 18:39:55 -04:00
|
|
|
|
2007-04-21 20:03:29 -04:00
|
|
|
<openjpa.assembly.finalName>
|
|
|
|
${artifactId}-${version}</openjpa.assembly.finalName>
|
|
|
|
<openjpa.assembly.outputDirectory>
|
2007-08-14 18:39:55 -04:00
|
|
|
${project.basedir}/../target/site/downloads
|
2007-04-21 20:03:29 -04:00
|
|
|
</openjpa.assembly.outputDirectory>
|
2006-11-07 23:16:46 -05:00
|
|
|
|
|
|
|
<openjpa.assembly.binarySuffix>binary</openjpa.assembly.binarySuffix>
|
2007-04-21 20:03:29 -04:00
|
|
|
<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>
|
2006-11-07 23:16:46 -05:00
|
|
|
|
|
|
|
<openjpa.assembly.sourceSuffix>source</openjpa.assembly.sourceSuffix>
|
2007-04-21 20:03:29 -04:00
|
|
|
<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
|
|
|
|
2007-08-30 14:01:10 -04:00
|
|
|
<parent.site.docs>
|
|
|
|
${project.basedir}/../target/site/docs
|
|
|
|
</parent.site.docs>
|
2007-08-14 18:39:55 -04:00
|
|
|
|
2007-04-21 20:03:29 -04:00
|
|
|
<docbook.source>${project.basedir}/src/doc/manual</docbook.source>
|
|
|
|
<docbook.target>${project.basedir}/target/manual</docbook.target>
|
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
|
|
|
<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>
|
2007-08-14 18:39:55 -04:00
|
|
|
<outputDirectory>${openjpa.assembly.outputDirectory}</outputDirectory>
|
2006-10-09 21:30:54 -04:00
|
|
|
<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:
|
2007-04-21 20:03:29 -04:00
|
|
|
MAVEN_OPTS=-Xmx512m
|
|
|
|
mvn -f openjpa-project/pom.xml process-resources -Pdocbook-profile
|
2006-10-09 21:30:54 -04:00
|
|
|
-->
|
|
|
|
<profile>
|
|
|
|
<id>docbook-profile</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2007-04-21 20:03:29 -04:00
|
|
|
<!-- build the docs when processing resources -->
|
2006-10-09 21:30:54 -04:00
|
|
|
<plugin>
|
2007-04-21 20:03:29 -04:00
|
|
|
<groupId>com.agilejava.docbkx</groupId>
|
|
|
|
<artifactId>docbkx-maven-plugin</artifactId>
|
2006-10-09 21:30:54 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2007-04-21 20:03:29 -04:00
|
|
|
<id>build-pdf-doc</id>
|
2006-11-08 16:29:52 -05:00
|
|
|
<phase>process-resources</phase>
|
2007-04-21 20:03:29 -04:00
|
|
|
<goals><goal>generate-pdf</goal></goals>
|
2006-10-09 21:30:54 -04:00
|
|
|
<configuration>
|
2007-04-21 20:03:29 -04:00
|
|
|
<sourceDirectory>
|
|
|
|
${docbook.source}
|
|
|
|
</sourceDirectory>
|
|
|
|
<targetDirectory>
|
|
|
|
${docbook.target}
|
|
|
|
</targetDirectory>
|
|
|
|
<includes>manual.xml</includes>
|
|
|
|
<foCustomization>
|
|
|
|
${docbook.source}/manual-pdf.xsl
|
|
|
|
</foCustomization>
|
|
|
|
<imgSrcPath>
|
|
|
|
${docbook.source}/
|
|
|
|
</imgSrcPath>
|
2007-08-30 14:01:10 -04:00
|
|
|
<postProcess>
|
|
|
|
<!-- copy to parent module for
|
|
|
|
expanded access in upload -->
|
2008-06-11 12:48:56 -04:00
|
|
|
<mkdir dir="${parent.site.docs}" />
|
|
|
|
<delete file="${docbook.target}/manual.fo" />
|
2007-08-30 14:01:10 -04:00
|
|
|
<copy todir="${parent.site.docs}">
|
2008-06-11 12:48:56 -04:00
|
|
|
<fileset dir="${docbook.target}">
|
|
|
|
<include name="manual.pdf" />
|
2007-08-30 14:01:10 -04:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</postProcess>
|
2007-04-21 20:03:29 -04:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>build-chunked-doc</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals><goal>generate-html</goal></goals>
|
|
|
|
<configuration>
|
|
|
|
<sourceDirectory>
|
|
|
|
${docbook.source}
|
|
|
|
</sourceDirectory>
|
|
|
|
<targetDirectory>
|
|
|
|
${docbook.target}
|
|
|
|
</targetDirectory>
|
|
|
|
<includes>manual.xml</includes>
|
|
|
|
<chunkedOutput>true</chunkedOutput>
|
|
|
|
<chunkQuietly>false</chunkQuietly>
|
|
|
|
<htmlCustomization>
|
|
|
|
${docbook.source}/manual-xhtml-chunk.xsl
|
|
|
|
</htmlCustomization>
|
|
|
|
<postProcess>
|
|
|
|
<!-- rename manual to index -->
|
2008-06-11 12:48:56 -04:00
|
|
|
<move file="${docbook.target}/manual.html" tofile="${docbook.target}/index.html" />
|
2006-10-09 21:30:54 -04:00
|
|
|
|
2007-04-21 20:03:29 -04:00
|
|
|
<!-- copy over images and styles -->
|
2008-06-11 12:48:56 -04:00
|
|
|
<mkdir dir="${docbook.target}/img" />
|
2007-04-21 20:03:29 -04:00
|
|
|
<copy todir="${docbook.target}/img">
|
2008-06-11 12:48:56 -04:00
|
|
|
<fileset dir="${docbook.source}/img">
|
|
|
|
<include name="*.*" />
|
2007-04-21 20:03:29 -04:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
2007-04-21 16:06:19 -04:00
|
|
|
|
2008-06-11 12:48:56 -04:00
|
|
|
<mkdir dir="${docbook.target}/css" />
|
2007-04-21 20:03:29 -04:00
|
|
|
<copy todir="${docbook.target}/css">
|
2008-06-11 12:48:56 -04:00
|
|
|
<fileset dir="${docbook.source}/css">
|
|
|
|
<include name="*.*" />
|
2007-04-21 20:03:29 -04:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
2007-08-30 14:01:10 -04:00
|
|
|
|
|
|
|
<!-- copy to parent module for
|
|
|
|
expanded access in upload -->
|
2008-06-11 12:48:56 -04:00
|
|
|
<mkdir dir="${parent.site.docs}" />
|
2007-08-30 14:01:10 -04:00
|
|
|
<copy todir="${parent.site.docs}">
|
2008-06-11 12:48:56 -04:00
|
|
|
<fileset dir="${docbook.target}">
|
|
|
|
<include name="*.*" />
|
2007-08-30 14:01:10 -04:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
2007-04-21 20:03:29 -04:00
|
|
|
</postProcess>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>build-single-doc</id>
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
<goals><goal>generate-html</goal></goals>
|
|
|
|
<configuration>
|
|
|
|
<sourceDirectory>
|
|
|
|
${docbook.source}
|
|
|
|
</sourceDirectory>
|
|
|
|
<targetDirectory>
|
|
|
|
${docbook.target}
|
|
|
|
</targetDirectory>
|
|
|
|
<includes>manual.xml</includes>
|
|
|
|
<chunkedOutput>false</chunkedOutput>
|
|
|
|
<htmlCustomization>
|
|
|
|
${docbook.source}/manual-xhtml.xsl
|
|
|
|
</htmlCustomization>
|
2007-08-30 14:01:10 -04:00
|
|
|
<postProcess>
|
|
|
|
<!-- copy to parent module for
|
|
|
|
expanded access in upload -->
|
2008-06-11 12:48:56 -04:00
|
|
|
<mkdir dir="${parent.site.docs}" />
|
2007-08-30 14:01:10 -04:00
|
|
|
<copy todir="${parent.site.docs}">
|
2008-06-11 12:48:56 -04:00
|
|
|
<fileset dir="${docbook.target}">
|
|
|
|
<include name="manual.html" />
|
2007-08-30 14:01:10 -04:00
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</postProcess>
|
2006-10-09 21:30:54 -04:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
2007-04-21 20:03:29 -04:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.docbook</groupId>
|
|
|
|
<artifactId>docbook-xml</artifactId>
|
|
|
|
<version>4.4</version>
|
|
|
|
<scope>runtime</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
2006-10-09 21:30:54 -04:00
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>builddocs</name>
|
|
|
|
<value>true</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
2007-04-21 20:03:29 -04:00
|
|
|
<pluginRepositories>
|
|
|
|
<pluginRepository>
|
|
|
|
<id>agilejava</id>
|
|
|
|
<name>Agilejava repository (Docbook plugin)</name>
|
|
|
|
<url>http://agilejava.com/maven</url>
|
|
|
|
</pluginRepository>
|
|
|
|
</pluginRepositories>
|
2006-10-09 21:30:54 -04:00
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
<!-- need to explicitly list dependencies for assembly to work -->
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
2007-05-09 18:23:54 -04:00
|
|
|
<artifactId>openjpa</artifactId>
|
2006-10-09 21:30:54 -04:00
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- included so we can include it in the distribution -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.derby</groupId>
|
|
|
|
<artifactId>derby</artifactId>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</project>
|