blob: 14ef0b23a27fb3d17b08a54588474f70430efeff [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 1997, 2019 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</groupId>
<artifactId>glassfish-parent</artifactId>
<version>5.1.0-SNAPSHOT</version>
</parent>
<artifactId>javaee-api-parent</artifactId>
<packaging>pom</packaging>
<version>5.1.0-SNAPSHOT</version>
<name>JavaEE API</name>
<description>Java EE API combined bundles</description>
<modules>
<module>javax.javaee-web-api</module>
<module>javax.javaee-api</module>
</modules>
<properties>
<extra.excludes />
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<useDefaultManifestFile>true</useDefaultManifestFile>
<archive>
<manifest>
<addClasspath>false</addClasspath>
<addDefaultSpecificationEntries>false</addDefaultSpecificationEntries>
<addDefaultImplementationEntries>false</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-doc-files</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${project.basedir}/../doc-files</directory>
</resource>
</resources>
<outputDirectory>${project.build.directory}/apidocs/doc-files</outputDirectory>
</configuration>
</execution>
<execution>
<id>copy-javadoc-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${project.build.directory}/sources-dependency</directory>
<includes>
<include>**/*.jpg</include>
<include>**/*.gif</include>
<include>**/*.pdf</include>
</includes>
</resource>
</resources>
<outputDirectory>${project.build.directory}/apidocs</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<configuration>
<attach>false</attach>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<executions>
<execution>
<id>default-deploy</id>
<configuration>
<skip>true</skip>
</configuration>
</execution>
</executions>
<inherited>false</inherited>
</plugin>
<plugin>
<groupId>org.glassfish.build</groupId>
<artifactId>glassfishbuild-maven-plugin</artifactId>
<executions>
<execution>
<id>unpack-sources</id>
<phase>process-resources</phase>
<configuration>
<attachSources>true</attachSources>
<excludeArtifactIds>tools-jar,servlet-api,jakarta.faces</excludeArtifactIds>
<excludes>javax/help/**,${extra.excludes}</excludes>
<includes>javax/**, resources/**</includes>
<excludeTransitive>true</excludeTransitive>
</configuration>
</execution>
<execution>
<id>generate-pom</id>
<phase>package</phase>
<configuration>
<parent>
<groupId>org.eclipse.ee4j</groupId>
<artifactId>project</artifactId>
<version>1.0</version>
</parent>
<groupId>javax</groupId>
<artifactId>${projet.artifactId}</artifactId>
<version>${javaee.version}</version>
</configuration>
</execution>
<execution>
<id>attach-all-artifacts</id>
<phase>verify</phase>
<configuration>
<pomFile>${project.build.directory}/pom.xml</pomFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<configuration>
<failOnError>false</failOnError>
<additionalparam>${javadoc.options}</additionalparam>
<attach>false</attach>
<doctitle>${project.name}</doctitle>
<windowtitle>${project.name}</windowtitle>
<bottom>
<![CDATA[Copyright &#169; 1996-2017,
<a href="http://www.oracle.com">Oracle</a>
and/or its affiliates. All Rights Reserved.
Use is subject to
<a href="{@docRoot}/doc-files/speclicense.html" target="_top">license terms</a>.
]]>
</bottom>
<links>
<link>http://docs.oracle.com/javase/8/docs/api/</link>
<link>http://docs.oracle.com/javaee/7/api/</link>
</links>
<tags>
<tag>
<name>implSpec</name>
<placement>a</placement>
<head>Implementation Specification:</head>
</tag>
</tags>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<resources>
<resource>
<targetPath>META-INF/</targetPath>
<filtering>false</filtering>
<directory>${project.basedir}/../license</directory>
<includes>
<include>LICENSE.txt</include>
</includes>
</resource>
</resources>
</build>
<profiles>
<!--
A profile to report serialVersionUID errors when compiling
the API source files.
-->
<profile>
<id>check-serial-version-uid</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<useIncrementalCompilation>false</useIncrementalCompilation>
<showWarnings>true</showWarnings>
<compilerArgs>
<arg>-Xlint:serial</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>javadoc-jdk8+</id>
<activation>
<jdk>[1.8,)</jdk>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<javadoc.options>-Xdoclint:none</javadoc.options>
</properties>
</profile>
</profiles>
</project>