278 lines
12 KiB
XML
278 lines
12 KiB
XML
<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/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-parent</artifactId>
|
|
<version>3.5.0-SNAPSHOT</version>
|
|
<relativePath>../parent/pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-entitymanager</artifactId>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>Hibernate Entitity Manager</name>
|
|
<description>Hibernate Entitity Manager</description>
|
|
|
|
<!-- Annotations and Commons-Annotations both use the ANN JIRA key -->
|
|
<issueManagement>
|
|
<system>jira</system>
|
|
<url>http://opensource.atlassian.com/projects/hibernate/browse/ANN</url>
|
|
</issueManagement>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-core</artifactId>
|
|
<version>${version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-annotations</artifactId>
|
|
<version>${version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cglib</groupId>
|
|
<artifactId>cglib</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javassist</groupId>
|
|
<artifactId>javassist</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hibernate.java-persistence</groupId>
|
|
<artifactId>jpa-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-jpamodelgen</artifactId>
|
|
<version>1.0.0-Alpha1-SNAPSHOT</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-core</artifactId>
|
|
<version>${version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-annotations</artifactId>
|
|
<version>${version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<build>
|
|
<testResources>
|
|
<testResource>
|
|
<filtering>false</filtering>
|
|
<directory>src/test/java</directory>
|
|
<includes>
|
|
<include>**/*.xml</include>
|
|
</includes>
|
|
</testResource>
|
|
<testResource>
|
|
<filtering>true</filtering>
|
|
<directory>src/test/resources</directory>
|
|
<includes>
|
|
<include>META-INF/**</include>
|
|
<include>*.properties</include>
|
|
</includes>
|
|
</testResource>
|
|
</testResources>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>process_annotations</id>
|
|
<phase>process-test-resources</phase>
|
|
<configuration>
|
|
<tasks>
|
|
<echo>processing JPA annotations</echo>
|
|
<property name="target.dir" value="target/generated-jpamodel-classes"/>
|
|
<mkdir dir="${target.dir}"/>
|
|
<javac srcdir="src/test/java" destdir="${target.dir}"
|
|
failonerror="false" excludes="test/**" fork="true" executable="${jdk16_home}/bin/javac" target="1.5">
|
|
<compilerarg value="-proc:only"/>
|
|
<classpath>
|
|
<path refid="maven.test.classpath"/>
|
|
</classpath>
|
|
</javac>
|
|
</tasks>
|
|
<sourceRoot>generate</sourceRoot>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.ant</groupId>
|
|
<artifactId>ant</artifactId>
|
|
<version>1.7.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>1.3</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-source</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-test-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>target/generated-jpamodel-classes</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>package-tests</id>
|
|
<phase>process-test-classes</phase>
|
|
<configuration>
|
|
<tasks>
|
|
<property name="package.dir" value="${basedir}/target/test-packages" />
|
|
<property name="package.tmp.dir" value="${basedir}/target/tmp" />
|
|
<property name="classes.dir" value="${project.build.directory}/test-classes" />
|
|
<property name="testresources.dir" value="${basedir}/src/test/resources" />
|
|
<ant antfile="${basedir}/build.xml">
|
|
<target name="package" />
|
|
</ant>
|
|
</tasks>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<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.jboss.maven.plugins</groupId>
|
|
<artifactId>maven-test-ext-plugin</artifactId>
|
|
<version>1.1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>extend</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<forkMode>pertest</forkMode>
|
|
<additionalClasspathElements>
|
|
<additionalClasspathElement>${basedir}/target/test-packages/cfgxmlpar.par</additionalClasspathElement>
|
|
<additionalClasspathElement>${basedir}/target/test-packages/defaultpar.par</additionalClasspathElement>
|
|
<additionalClasspathElement>${basedir}/target/test-packages/excludehbmpar.par</additionalClasspathElement>
|
|
<additionalClasspathElement>${basedir}/target/test-packages/explicitpar.par</additionalClasspathElement>
|
|
<additionalClasspathElement>${basedir}/target/test-packages/explodedpar.par</additionalClasspathElement>
|
|
<additionalClasspathElement>${basedir}/target/test-packages/externaljar.jar</additionalClasspathElement>
|
|
<additionalClasspathElement>${basedir}/target/test-packages/nesteddir.ear</additionalClasspathElement>
|
|
<additionalClasspathElement>${basedir}/target/test-packages/nestedjar.ear</additionalClasspathElement>
|
|
<additionalClasspathElement>${basedir}/target/test-packages/overridenpar.jar</additionalClasspathElement>
|
|
<additionalClasspathElement>${basedir}/target/test-packages/space par.par</additionalClasspathElement>
|
|
<additionalClasspathElement>${basedir}/target/test-packages/war.war</additionalClasspathElement>
|
|
</additionalClasspathElements>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>doc</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.jboss.maven.plugins</groupId>
|
|
<artifactId>maven-jdocbook-plugin</artifactId>
|
|
<version>2.1.0</version>
|
|
<extensions>true</extensions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-jdocbook-style</artifactId>
|
|
<version>1.0.2</version>
|
|
<type>jdocbook-style</type>
|
|
</dependency>
|
|
</dependencies>
|
|
<configuration>
|
|
<sourceDocumentName>master.xml</sourceDocumentName>
|
|
<sourceDirectory>${basedir}/src/main/docbook/en</sourceDirectory>
|
|
<masterTranslation>en-US</masterTranslation>
|
|
<imageResource>
|
|
<directory>${basedir}/src/main/docbook/en/images</directory>
|
|
</imageResource>
|
|
<formats>
|
|
<format>
|
|
<formatName>pdf</formatName>
|
|
<stylesheetResource>classpath:/xslt/hibernate/pdf/main-pdf.xsl</stylesheetResource>
|
|
<finalName>hibernate-validator-legacy-guide.pdf</finalName>
|
|
</format>
|
|
<format>
|
|
<formatName>html_single</formatName>
|
|
<stylesheetResource>classpath:/xslt/hibernate/html/main-single.xsl
|
|
</stylesheetResource>
|
|
<finalName>index.html</finalName>
|
|
</format>
|
|
<format>
|
|
<formatName>html</formatName>
|
|
<stylesheetResource>classpath:/xslt/hibernate/html/main-chunk.xsl
|
|
</stylesheetResource>
|
|
<finalName>index.html</finalName>
|
|
</format>
|
|
</formats>
|
|
<options>
|
|
<xincludeSupported>true</xincludeSupported>
|
|
<localeSeparator>-</localeSeparator>
|
|
<useRelativeImageUris>true</useRelativeImageUris>
|
|
</options>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>make-doc</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>resources</goal>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|