| <?xml version="1.0"?> |
| <!-- |
| 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 |
| |
| https://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 |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <groupId>nl.example.avro</groupId> |
| <artifactId>integration-test</artifactId> |
| <version>1.0.0</version> |
| |
| <packaging>jar</packaging> |
| <name>IT : Java @integrationTestingJDK@</name> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <project.build.outputEncoding>UTF-8</project.build.outputEncoding> |
| <maven.compiler.source>11</maven.compiler.source> |
| |
| <main.basedir>../../../../../..</main.basedir> |
| <interop.datadir>${main.basedir}/build/interop/data/</interop.datadir> |
| </properties> |
| |
| <build> |
| |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-toolchains-plugin</artifactId> |
| <version>@maven-toolchains-plugin.version@</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>select-jdk-toolchain</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <version>@integrationTestingJDK@</version> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.avro</groupId> |
| <artifactId>avro-maven-plugin</artifactId> |
| <version>@project.version@</version> |
| <executions> |
| <execution> |
| <id>schemas</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>schema</goal> |
| <!--<goal>protocol</goal>--> |
| <!--<goal>idl-protocol</goal>--> |
| </goals> |
| <configuration> |
| <includes> |
| <include>**/interop.avsc</include> |
| </includes> |
| <excludes> |
| <exclude>**/*</exclude> |
| <!-- <exclude>org/apache/avro/data/Json.avsc</exclude>--> |
| </excludes> |
| <stringType>String</stringType> |
| <createOptionalGetters>true</createOptionalGetters> |
| <!--<gettersReturnOptional>true</gettersReturnOptional>--> |
| <sourceDirectory>${main.basedir}/share/schemas/</sourceDirectory> |
| <outputDirectory>${project.build.directory}/generated-sources/java</outputDirectory> |
| <testSourceDirectory>${main.basedir}/share/test/schemas/</testSourceDirectory> |
| <testOutputDirectory>${project.build.directory}/generated-test-sources/java</testOutputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>3.1.2</version> |
| <configuration> |
| <enableAssertions>false</enableAssertions> |
| <forkCount>1</forkCount> |
| <reuseForks>true</reuseForks> |
| <redirectTestOutputToFile>false</redirectTestOutputToFile> |
| <systemPropertyVariables> |
| <test.dir>${interop.datadir}</test.dir> |
| |
| <!-- Repeating the related system properties here because this pom does not inherit the configuration. --> |
| <org.apache.avro.SERIALIZABLE_CLASSES> |
| java.net.URI, |
| java.net.URL, |
| java.io.File, |
| java.util.HashMap, |
| java.util.List, |
| java.util.Collection, |
| java.util.Map, |
| java.util.Set, |
| java.util.concurrent.ConcurrentHashMap, |
| java.util.LinkedHashMap, |
| java.util.TreeMap |
| </org.apache.avro.SERIALIZABLE_CLASSES> |
| <org.apache.avro.SERIALIZABLE_PACKAGES>org.apache.avro</org.apache.avro.SERIALIZABLE_PACKAGES> |
| |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <!-- The project artifact to be tested --> |
| <dependency> |
| <groupId>org.apache.avro</groupId> |
| <artifactId>avro</artifactId> |
| <version>@project.version@</version> |
| </dependency> |
| |
| <!-- Some tests expect the optional dependencies to be present --> |
| <dependency> |
| <groupId>org.xerial.snappy</groupId> |
| <artifactId>snappy-java</artifactId> |
| <version>@snappy.version@</version> |
| <optional>true</optional> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.tukaani</groupId> |
| <artifactId>xz</artifactId> |
| <version>@tukaani.version@</version> |
| <optional>true</optional> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.github.luben</groupId> |
| <artifactId>zstd-jni</artifactId> |
| <version>@zstd-jni.version@</version> |
| <optional>true</optional> |
| </dependency> |
| |
| <!-- External test deps --> |
| <dependency> |
| <groupId>org.junit.vintage</groupId> |
| <artifactId>junit-vintage-engine</artifactId> |
| <version>@junit5.version@</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter</artifactId> |
| <version>@junit5.version@</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-library</artifactId> |
| <version>@hamcrest.version@</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <version>@mockito.version@</version> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| </project> |