| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved. | |
| This program and the accompanying materials are made available under the | |
| terms of the Eclipse Public License v. 2.0, which is available at | |
| http://www.eclipse.org/legal/epl-2.0. | |
| This Source Code may also be made available under the following Secondary | |
| Licenses when the conditions for such availability set forth in the | |
| Eclipse Public License v. 2.0 are satisfied: GNU General Public License, | |
| version 2 with the GNU Classpath Exception, which is available at | |
| https://www.gnu.org/software/classpath/license.html. | |
| SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | |
| --> | |
| <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>6.0.0-SNAPSHOT</version> | |
| </parent> | |
| <artifactId>appserver-schemas</artifactId> | |
| <packaging>distribution-fragment</packaging> | |
| <name>Set of schemas for Java EE</name> | |
| <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> | |
| <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> | |
| </goals> | |
| <!-- | |
| Extract orm*.xsd and persistence*.xsd into a temp location from jakarta.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>jakarta.persistence</groupId> | |
| <artifactId>jakarta.persistence-api</artifactId> | |
| <includes>jakarta/persistence/orm*.xsd, jakarta/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.outputDirectory}/glassfish/lib/schemas" flatten="true"> | |
| <fileset dir="${jpa.schema.temp.location}/jakarta/persistence" /> | |
| </copy> | |
| </tasks> | |
| </configuration> | |
| <goals> | |
| <goal>run</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </project> |