| <?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 : Generate Interop Data Test Files with 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.inputschema>${main.basedir}/share/test/schemas/interop.avsc</interop.inputschema> | |
| <interop.datadir>${main.basedir}/build/interop/data/</interop.datadir> | |
| </properties> | |
| <build> | |
| <testResources> | |
| <testResource> | |
| <directory>../../src/test/resources</directory> | |
| </testResource> | |
| <testResource> | |
| <directory>@main.basedir@</directory> | |
| <includes> | |
| <include>share</include> | |
| </includes> | |
| </testResource> | |
| <testResource> | |
| <directory>@main.basedir@/share/</directory> | |
| <includes> | |
| <include>schemas/**</include> | |
| <include>test/**</include> | |
| </includes> | |
| <targetPath>share/</targetPath> | |
| </testResource> | |
| </testResources> | |
| <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.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <version>@exec-plugin.version@</version> | |
| <executions> | |
| <!-- Generate random data for interop tests, using null codec --> | |
| <execution> | |
| <id>interop-generate-null-codec</id> | |
| <phase>generate-resources</phase> | |
| <configuration> | |
| <mainClass>org.apache.avro.util.RandomData</mainClass> | |
| <arguments> | |
| <argument>${interop.inputschema}</argument> | |
| <argument>${interop.datadir}/java_@integrationTestingJDK@.avro</argument> | |
| <argument>100</argument> | |
| </arguments> | |
| </configuration> | |
| <goals><goal>java</goal></goals> | |
| </execution> | |
| <!-- Generate random data for interop tests, using deflate codec --> | |
| <execution> | |
| <id>interop-generate-deflate-codec</id> | |
| <phase>generate-resources</phase> | |
| <configuration> | |
| <mainClass>org.apache.avro.util.RandomData</mainClass> | |
| <arguments> | |
| <argument>${interop.inputschema}</argument> | |
| <argument>${interop.datadir}/java_@integrationTestingJDK@_deflate.avro</argument> | |
| <argument>100</argument> | |
| <argument>deflate</argument> | |
| </arguments> | |
| </configuration> | |
| <goals><goal>java</goal></goals> | |
| </execution> | |
| <!-- Generate random data for interop tests, using snappy codec --> | |
| <execution> | |
| <id>interop-generate-snappy-codec</id> | |
| <phase>generate-resources</phase> | |
| <configuration> | |
| <mainClass>org.apache.avro.util.RandomData</mainClass> | |
| <arguments> | |
| <argument>${interop.inputschema}</argument> | |
| <argument>${interop.datadir}/java_@integrationTestingJDK@_snappy.avro</argument> | |
| <argument>100</argument> | |
| <argument>snappy</argument> | |
| </arguments> | |
| </configuration> | |
| <goals><goal>java</goal></goals> | |
| </execution> | |
| <!-- Generate random data for interop tests, using bzip2 codec --> | |
| <execution> | |
| <id>interop-generate-bzip2-codec</id> | |
| <phase>generate-resources</phase> | |
| <configuration> | |
| <mainClass>org.apache.avro.util.RandomData</mainClass> | |
| <arguments> | |
| <argument>${interop.inputschema}</argument> | |
| <argument>${interop.datadir}/java_@integrationTestingJDK@_bzip2.avro</argument> | |
| <argument>100</argument> | |
| <argument>bzip2</argument> | |
| </arguments> | |
| </configuration> | |
| <goals><goal>java</goal></goals> | |
| </execution> | |
| <!-- Generate random data for interop tests, using xz codec --> | |
| <execution> | |
| <id>interop-generate-xz-codec</id> | |
| <phase>generate-resources</phase> | |
| <configuration> | |
| <mainClass>org.apache.avro.util.RandomData</mainClass> | |
| <arguments> | |
| <argument>${interop.inputschema}</argument> | |
| <argument>${interop.datadir}/java_@integrationTestingJDK@_xz.avro</argument> | |
| <argument>100</argument> | |
| <argument>xz</argument> | |
| </arguments> | |
| </configuration> | |
| <goals><goal>java</goal></goals> | |
| </execution> | |
| <!-- Generate random data for interop tests, using zstandard codec --> | |
| <execution> | |
| <id>interop-generate-zstandard-codec</id> | |
| <phase>generate-resources</phase> | |
| <configuration> | |
| <mainClass>org.apache.avro.util.RandomData</mainClass> | |
| <arguments> | |
| <argument>${interop.inputschema}</argument> | |
| <argument>${interop.datadir}/java_@integrationTestingJDK@_zstandard.avro</argument> | |
| <argument>100</argument> | |
| <argument>zstandard</argument> | |
| </arguments> | |
| </configuration> | |
| <goals><goal>java</goal></goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| <dependencies> | |
| <!-- The project artifact to be tested --> | |
| <dependency> | |
| <groupId>@project.groupId@</groupId> | |
| <artifactId>@project.artifactId@</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> |