|
Glassfish example source code file (pom.xml)
The Glassfish pom.xml source code
<?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
<parent>
<groupId>org.glassfish.deployment
<artifactId>deployment
<version>3.1
<relativePath>../pom.xml
</parent>
<artifactId>schemas
<packaging>distribution-fragment
<name>Set of schemas for Java EE
<properties>
<jpa.schema.temp.location>${project.build.directory}/jpaSchemaFiles
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins
<artifactId>maven-dependency-plugin
<executions>
<execution>
<id>unpack
<goals>
<goal>unpack
</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
<artifactId>javax.persistence
<includes>javax/persistence/orm*.xsd, javax/persistence/persistence*.xsd
<outputDirectory>${jpa.schema.temp.location}
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jvnet.maven-antrun-extended-plugin
<artifactId>maven-antrun-extended-plugin
<executions>
<execution>
<phase>process-resources
<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
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.glassfish.build
<artifactId>maven-glassfishbuild-plugin
<extensions>true
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.glassfish.build
<artifactId>maven-glassfishbuild-extension
<version>${project.version}
</extension>
</extensions>
</build>
</project>
Other Glassfish examples (source code examples)Here is a short list of links related to this Glassfish pom.xml source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.