| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright (c) 2011, 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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.eclipse.ee4j</groupId> |
| <artifactId>project</artifactId> |
| <version>1.0.6</version> |
| </parent> |
| |
| <prerequisites> |
| <maven>3.3.1</maven> |
| </prerequisites> |
| |
| <groupId>org.glassfish</groupId> |
| <artifactId>json</artifactId> |
| <packaging>pom</packaging> |
| <version>2.0.0-RC3</version> |
| <name>Jakarta JSON Processing</name> |
| <description>Jakarta JSON Processing defines a Java(R) based framework for parsing, generating, transforming, and querying JSON documents.</description> |
| <url>https://github.com/eclipse-ee4j/jsonp</url> |
| |
| <scm> |
| <connection>scm:git:git://github.com/eclipse-ee4j/jsonp.git</connection> |
| <developerConnection>scm:git:git@github.com:eclipse-ee4j/jsonp.git</developerConnection> |
| <url>https://github.com/eclipse-ee4j/jsonp</url> |
| <tag>HEAD</tag> |
| </scm> |
| |
| <licenses> |
| <license> |
| <name>Eclipse Public License 2.0</name> |
| <url>https://projects.eclipse.org/license/epl-2.0</url> |
| <distribution>repo</distribution> |
| </license> |
| <license> |
| <name>GNU General Public License, version 2 with the GNU Classpath Exception</name> |
| <url>https://projects.eclipse.org/license/secondary-gpl-2.0-cp</url> |
| <distribution>repo</distribution> |
| </license> |
| </licenses> |
| |
| <developers> |
| <developer> |
| <id>m0mus</id> |
| <name>Dmitry Kornilov</name> |
| <organization>Oracle</organization> |
| <roles> |
| <role>project lead</role> |
| </roles> |
| </developer> |
| <developer> |
| <id>lukasj</id> |
| <name>Lukas Jungmann</name> |
| <organization>Oracle</organization> |
| <roles> |
| <role>dev lead</role> |
| </roles> |
| </developer> |
| </developers> |
| |
| <properties> |
| <api_package>jakarta.json</api_package> |
| <impl_namespace>org.glassfish</impl_namespace> |
| <spec_version>1.1</spec_version> |
| <new_spec_version>1.2</new_spec_version> |
| <new_spec_impl_version>1.2</new_spec_impl_version> |
| <impl_version>1.1.3</impl_version> |
| <new_impl_version>1.2.0</new_impl_version> |
| <non.final>false</non.final> |
| <legal.doc.source>${maven.multiModuleProjectDirectory}</legal.doc.source> |
| <javadoc.link.jdk>http://docs.oracle.com/javase/8/docs/api</javadoc.link.jdk> |
| <config.dir>${project.root.location}/etc/config</config.dir> |
| <copyright.exclude>${config.dir}/copyright-exclude</copyright.exclude> |
| <copyright.templatefile>${config.dir}/copyright.txt</copyright.templatefile> |
| <copyright.ignoreyear>false</copyright.ignoreyear> |
| <copyright.scmonly>true</copyright.scmonly> |
| <copyright.update>false</copyright.update> |
| <spotbugs.exclude>${config.dir}/exclude.xml</spotbugs.exclude> |
| <spotbugs.skip>false</spotbugs.skip> |
| <spotbugs.threshold>Low</spotbugs.threshold> |
| <spotbugs.version>3.1.12.2</spotbugs.version> |
| <jakarta_json-api_version>2.0.0-RC1</jakarta_json-api_version> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.commonjava.maven.plugins</groupId> |
| <artifactId>directory-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>find-project-root</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>highest-basedir</goal> |
| </goals> |
| <configuration> |
| <property>project.root.location</property> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| </plugin> |
| <!-- Requires validate target to initialize copyright.config.dir properly --> |
| <!-- e.g. mvn validate glassfish-copyright:repair --> |
| <plugin> |
| <groupId>org.glassfish.copyright</groupId> |
| <artifactId>glassfish-copyright-maven-plugin</artifactId> |
| <version>2.3</version> |
| <configuration> |
| <templateFile>${copyright.templatefile}</templateFile> |
| <excludeFile>${copyright.exclude}</excludeFile> |
| <!-- skip files not under SCM--> |
| <scmOnly>${copyright.scmonly}</scmOnly> |
| <!-- for use with repair --> |
| <update>${copyright.update}</update> |
| <!-- check that year is correct --> |
| <ignoreYear>${copyright.ignoreyear}</ignoreYear> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| <phase>verify</phase> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>add-legal-resource</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>add-resource</goal> |
| </goals> |
| <configuration> |
| <resources> |
| <resource> |
| <directory>${legal.doc.source}</directory> |
| <includes> |
| <include>NOTICE.md</include> |
| <include>LICENSE.md</include> |
| </includes> |
| <targetPath>META-INF</targetPath> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>jar-no-fork</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-release-plugin</artifactId> |
| <configuration> |
| <mavenExecutorId>forked-path</mavenExecutorId> |
| <useReleaseProfile>false</useReleaseProfile> |
| <arguments>${release.arguments}</arguments> |
| </configuration> |
| </plugin> |
| </plugins> |
| |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.commonjava.maven.plugins</groupId> |
| <artifactId>directory-maven-plugin</artifactId> |
| <version>0.3.1</version> |
| </plugin> |
| <plugin> |
| <groupId>com.github.spotbugs</groupId> |
| <artifactId>spotbugs-maven-plugin</artifactId> |
| <version>${spotbugs.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.glassfish.build</groupId> |
| <artifactId>spec-version-maven-plugin</artifactId> |
| <version>2.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.glassfish.copyright</groupId> |
| <artifactId>glassfish-copyright-maven-plugin</artifactId> |
| <version>2.3</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <version>4.2.1</version> |
| <configuration> |
| <instructions> |
| <_noee>true</_noee> |
| </instructions> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>3.0.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <!-- |
| Version 3.1.1 adds the argument add-modules ALL-MODULE-PATH that fails with next: |
| error: add-modules ALL-MODULE-PATH can only be used when compiling the unnamed module |
| --> |
| <version>3.0.1</version> |
| <configuration> |
| <detectJavaApiLink>false</detectJavaApiLink> |
| <links> |
| <link>${javadoc.link.jdk}</link> |
| </links> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>3.0.1</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.8.1</version> |
| <configuration> |
| <source>1.8</source> |
| <target>1.8</target> |
| <compilerArgs> |
| <arg>-Xlint:all</arg> |
| </compilerArgs> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>3.2.1</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>3.2.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <version>3.1.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>3.1.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>wagon-maven-plugin</artifactId> |
| <version>2.0.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-clean-plugin</artifactId> |
| <version>3.1.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-deploy-plugin</artifactId> |
| <version>2.8.2</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-install-plugin</artifactId> |
| <version>2.5.2</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-site-plugin</artifactId> |
| <version>3.7.1</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.22.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.6.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>3.1.0</version> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-release-plugin</artifactId> |
| <version>2.5.3</version> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven.scm</groupId> |
| <artifactId>maven-scm-provider-gitexe</artifactId> |
| <version>1.9.5</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <groupId>org.sonatype.plugins</groupId> |
| <artifactId>nexus-staging-maven-plugin</artifactId> |
| <version>1.6.7</version> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>jakarta.ws.rs</groupId> |
| <artifactId>jakarta.ws.rs-api</artifactId> |
| <version>3.0.0-M1</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.annotation</groupId> |
| <artifactId>jakarta.annotation-api</artifactId> |
| <version>1.3.4</version> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.servlet</groupId> |
| <artifactId>jakarta.servlet-api</artifactId> |
| <version>4.0.2</version> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.json</groupId> |
| <artifactId>jakarta.json-api</artifactId> |
| <version>${jakarta_json-api_version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.glassfish</groupId> |
| <artifactId>jakarta.json</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.glassfish</groupId> |
| <artifactId>jakarta.json</artifactId> |
| <classifier>module</classifier> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.glassfish</groupId> |
| <artifactId>jsonp-jaxrs</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.xml.bind</groupId> |
| <artifactId>jakarta.xml.bind-api</artifactId> |
| <version>2.3.2</version> |
| </dependency> |
| <dependency> |
| <groupId>javax.ws.rs</groupId> |
| <artifactId>jsr311-api</artifactId> |
| <version>1.1.1</version> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.12</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <profiles> |
| |
| <profile> |
| <id>release</id> |
| <modules> |
| <module>impl</module> |
| <module>jaxrs</module> |
| </modules> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.sonatype.plugins</groupId> |
| <artifactId>nexus-staging-maven-plugin</artifactId> |
| <extensions>true</extensions> |
| <configuration> |
| <serverId>ossrh</serverId> |
| <nexusUrl>${sonatypeOssDistMgmtReleasesUrl}</nexusUrl> |
| <autoReleaseAfterClose>false</autoReleaseAfterClose> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>jdk9-setup</id> |
| <activation> |
| <jdk>[9,)</jdk> |
| </activation> |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <release>8</release> |
| </configuration> |
| <executions> |
| <execution> |
| <id>default-compile</id> |
| <configuration> |
| <release>9</release> |
| <source>9</source> |
| <target>9</target> |
| </configuration> |
| </execution> |
| <execution> |
| <id>base-compile</id> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| <configuration> |
| <excludes> |
| <exclude>module-info.java</exclude> |
| </excludes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>add-jdk9-source</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>src/main/jdk9</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>jdk9-all</id> |
| <activation> |
| <jdk>[9,)</jdk> |
| </activation> |
| <modules> |
| <module>impl</module> |
| <module>jaxrs</module> |
| <module>jaxrs-1x</module> |
| <module>gf</module> |
| <module>demos</module> |
| <module>bundles</module> |
| </modules> |
| </profile> |
| |
| <profile> |
| <id>jdk11-setup</id> |
| <activation> |
| <jdk>[11,)</jdk> |
| </activation> |
| <properties> |
| <javadoc.link.jdk>https://docs.oracle.com/en/java/javase/11/docs/api</javadoc.link.jdk> |
| </properties> |
| </profile> |
| |
| <profile> |
| <id>all</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <modules> |
| <module>impl</module> |
| <module>jaxrs</module> |
| <module>jaxrs-1x</module> |
| <module>gf</module> |
| <module>demos</module> |
| <module>bundles</module> |
| </modules> |
| </profile> |
| |
| </profiles> |
| |
| <reporting> |
| <plugins> |
| <plugin> |
| <groupId>com.github.spotbugs</groupId> |
| <artifactId>spotbugs-maven-plugin</artifactId> |
| <configuration> |
| <skip>${spotbugs.skip}</skip> |
| <threshold>${spotbugs.threshold}</threshold> |
| <findbugsXmlWithMessages>true</findbugsXmlWithMessages> |
| <excludeFilterFile> |
| ${spotbugs.exclude} |
| </excludeFilterFile> |
| <fork>true</fork> |
| </configuration> |
| </plugin> |
| </plugins> |
| </reporting> |
| |
| </project> |