| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <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"> |
| <parent> |
| <artifactId>johnzon</artifactId> |
| <groupId>org.apache.johnzon</groupId> |
| <version>2.0.2-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>johnzon-core</artifactId> |
| <name>Johnzon :: Core</name> |
| <packaging>bundle</packaging> |
| |
| <properties> |
| <staging.directory>${project.parent.reporting.outputDirectory}</staging.directory> |
| </properties> |
| |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.junit.vintage</groupId> |
| <artifactId>junit-vintage-engine</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>jakarta.json</groupId> |
| <artifactId>jakarta.json-tck-tests</artifactId> |
| <version>2.1.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>jakarta.json</groupId> |
| <artifactId>jakarta.json-tck-tests-pluggability</artifactId> |
| <version>2.1.1</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.netbeans.tools</groupId> |
| <artifactId>sigtest-maven-plugin</artifactId> |
| <version>1.7</version> |
| <scope>test</scope> |
| |
| <exclusions> |
| <exclusion> |
| <groupId>org.netbeans.tools</groupId> |
| <artifactId>ct-sym</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <configuration> |
| <instructions> |
| <Automatic-Module-Name>org.apache.johnzon.core</Automatic-Module-Name> |
| <Require-Capability>osgi.extender;filter:="(osgi.extender=osgi.serviceloader.registrar)"</Require-Capability> |
| <Provide-Capability>osgi.serviceloader;osgi.serviceloader=jakarta.json.spi.JsonProvider</Provide-Capability> |
| </instructions> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| |
| <executions> |
| <execution> |
| <id>copy</id> |
| <phase>generate-test-resources</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>jakarta.json</groupId> |
| <artifactId>jakarta.json-api</artifactId> |
| <version>${jakarta-jsonp-api.version}</version> |
| <type>jar</type> |
| <overWrite>true</overWrite> |
| <outputDirectory>${project.build.directory}/signaturedirectory</outputDirectory> |
| <destFileName>jakarta.json-api.jar</destFileName> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${surefire.plugin.version}</version> |
| |
| <executions> |
| <execution> |
| <id>tck-test</id> |
| |
| <goals> |
| <goal>test</goal> |
| </goals> |
| |
| <configuration> |
| <dependenciesToScan>jakarta.json:jakarta.json-tck-tests</dependenciesToScan> |
| |
| <!-- don't run johnzon tests multiple times, handled in default-test already --> |
| <excludes> |
| <exclude>**/org/apache/johnzon/**</exclude> |
| </excludes> |
| |
| <systemPropertyVariables> |
| <jimage.dir>${project.build.directory}/jimage</jimage.dir> |
| <signature.sigTestClasspath>${project.build.directory}/signaturedirectory/jakarta.json-api.jar:${project.build.directory}/jimage/java.base:${project.build.directory}/jimage/java.rmi:${project.build.directory}/jimage/java.sql:${project.build.directory}/jimage/java.naming</signature.sigTestClasspath> |
| </systemPropertyVariables> |
| </configuration> |
| </execution> |
| |
| <execution> |
| <id>tck-test-pluggability</id> |
| |
| <goals> |
| <goal>test</goal> |
| </goals> |
| |
| <configuration> |
| <dependenciesToScan>jakarta.json:jakarta.json-tck-tests-pluggability</dependenciesToScan> |
| |
| <!-- don't run johnzon tests multiple times, handled in default-test already --> |
| <excludes> |
| <exclude>**/org/apache/johnzon/**</exclude> |
| </excludes> |
| |
| <!-- pluggability tests come with their own JsonProvider implementation, |
| so we have to hide the johnzon one for these to run --> |
| <classesDirectory>${project.build.outputDirectory}/nowhere</classesDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |