2006-07-26 00:24:28 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<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
|
|
|
|
-->
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>openjpa-project</artifactId>
|
2006-08-23 14:23:19 -04:00
|
|
|
<packaging>pom</packaging>
|
2006-09-07 21:24:18 -04:00
|
|
|
<name>OpenJPA Distribution</name>
|
2006-07-26 00:24:28 -04:00
|
|
|
<parent>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa</artifactId>
|
2006-08-26 14:59:34 -04:00
|
|
|
<version>0.9.0-incubating-SNAPSHOT</version>
|
2006-07-26 00:24:28 -04:00
|
|
|
</parent>
|
|
|
|
<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>
|
2006-07-26 04:45:19 -04:00
|
|
|
<filtering>false</filtering>
|
2006-07-26 00:24:28 -04:00
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>bin</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
2006-09-07 21:24:18 -04:00
|
|
|
<goal>attached</goal>
|
2006-07-26 00:24:28 -04:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<descriptor>assembly.xml</descriptor>
|
|
|
|
<finalName>openjpa-${version}</finalName>
|
2006-08-24 13:24:17 -04:00
|
|
|
<outputDirectory>${project.basedir}/target/assembly</outputDirectory>
|
2006-07-26 00:24:28 -04:00
|
|
|
<workDirectory>target/work</workDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>sources</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
2006-09-07 21:24:18 -04:00
|
|
|
<goal>attached</goal>
|
2006-07-26 00:24:28 -04:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<descriptor>source-assembly.xml</descriptor>
|
|
|
|
<finalName>openjpa-${version}</finalName>
|
2006-08-24 13:24:17 -04:00
|
|
|
<outputDirectory>${project.basedir}/target/assembly</outputDirectory>
|
2006-07-26 00:24:28 -04:00
|
|
|
<workDirectory>target/work</workDirectory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<!--
|
2006-08-01 19:09:17 -04:00
|
|
|
Copy over site files from src/site to target/filtered-site
|
2006-07-26 00:24:28 -04:00
|
|
|
so we can filter resources and include other generated
|
2006-08-01 19:09:17 -04:00
|
|
|
content from the openjpa-project module.
|
2006-07-26 00:24:28 -04:00
|
|
|
-->
|
|
|
|
<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>
|
|
|
|
|
2006-09-16 14:17:47 -04:00
|
|
|
<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>
|
|
|
|
<phase>package</phase>
|
|
|
|
<configuration>
|
|
|
|
<!-- destdir="${project.build.directory}/site/manual" -->
|
|
|
|
<tasks>
|
|
|
|
<echo>Building docbook manual</echo>
|
|
|
|
|
|
|
|
<!-- download stylesheets -->
|
|
|
|
<property name="stylesheet" value="1.69.1.tar.bz2"/>
|
|
|
|
<property name="stylesheet.dir" value="${project.basedir}/target/stylesheets"/>
|
|
|
|
|
|
|
|
<mkdir dir="${stylesheet.dir}"/>
|
|
|
|
<get src="http://docbook.sourceforge.net/release/xsl/${stylesheet}" usetimestamp="true" dest="${stylesheet.dir}/${stylesheet}"/>
|
|
|
|
<untar src="${stylesheet.dir}/${stylesheet}" dest="${stylesheet.dir}" compression="bzip2" overwrite="false"/>
|
|
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
</profiles>
|
|
|
|
|
2006-07-26 00:24:28 -04:00
|
|
|
<!-- need to explicitly list dependencies for assembly to work -->
|
|
|
|
<dependencies>
|
2006-09-07 21:24:18 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-all</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
2006-07-26 00:24:28 -04:00
|
|
|
<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>
|
2006-08-03 17:30:30 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.openjpa</groupId>
|
|
|
|
<artifactId>openjpa-kernel-4</artifactId>
|
|
|
|
<version>${pom.version}</version>
|
|
|
|
</dependency>
|
2006-07-26 00:24:28 -04:00
|
|
|
<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>
|
|
|
|
|
|
|
|
<!-- included so we can include it in the distribution -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.derby</groupId>
|
|
|
|
<artifactId>derby</artifactId>
|
|
|
|
<version>10.1.3.1</version>
|
|
|
|
</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>
|
|
|
|
</dependencies>
|
|
|
|
</project>
|