pom.xml revision ada1678a4262b208a7b87391f520a7767d25287c
1N/A<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.glassfish.main.deployment</groupId>
<artifactId>deployment</artifactId>
<version>3.1.2</version>
<relativePath>/pom.xml</relativePath>
</parent>
<artifactId>schemas</artifactId>
<packaging>distribution-fragment</packaging>
<name>Set of schemas for Java EE</name>
<properties>
<jpa.schema.temp.location>${project.build.directory}/jpaSchemaFiles</jpa.schema.temp.location>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<goals>
<goal>unpack</goal> <!-- bids to process-sources phase by default -->
</goals>
<!--
Extract orm*.xsd and persistence*.xsd into a temp location from javax.persistence.jar.
The files would be extracted as javax/persistence/{file} under the location.
It is not possible to specify to exclude javax/persistence prefix while extracting the file.
The ant task below would copy the files under classes/glassfish/lib/schemas so that it
can be picked up in packaging phase.
-->
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<includes>javax/persistence/orm*.xsd, javax/persistence/persistence*.xsd</includes>
<outputDirectory>${jpa.schema.temp.location}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
<artifactId>maven-antrun-extended-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<configuration>
<tasks>
<copy todir="${project.build.directory}/classes/glassfish/lib/schemas" flatten="true">
<fileset dir="${jpa.schema.temp.location}/javax/persistence" />
</copy>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.glassfish.build</groupId>
<artifactId>maven-glassfishbuild-plugin</artifactId>
<extensions>true</extensions>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.glassfish.build</groupId>
<artifactId>maven-glassfishbuild-extension</artifactId>
<version>${glassfishbuild.version}</version>
</extension>
</extensions>
</build>
<developers>
<developer>
<id>hzhang_jn</id>
<name>Hong Zhang</name>
<url>http://blogs.sun.com/misty</url>
<organization>Oracle, Inc.</organization>
<roles>
<role>lead</role>
<role>developer</role>
</roles>
</developer>
<developer>
<id>tjquinn</id>
<name>Tim Quinn</name>
<url>http://blogs.sun.com/quinn</url>
<organization>Oracle, Inc.</organization>
<roles>
<role>developer</role>
</roles>
</developer>
</developers>
</project>