| <?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 | |
| 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> | |
| <parent> | |
| <artifactId>avro-integration-test</artifactId> | |
| <groupId>org.apache.avro</groupId> | |
| <version>1.13.0-SNAPSHOT</version> | |
| <relativePath>../pom.xml</relativePath> | |
| </parent> | |
| <artifactId>avro-codegen-test</artifactId> | |
| <name>Apache Avro Codegen Test</name> | |
| <packaging>jar</packaging> | |
| <url>https://avro.apache.org</url> | |
| <description>Tests generated Avro Specific Java API</description> | |
| <properties> | |
| <main.basedir>${project.parent.parent.parent.basedir}</main.basedir> | |
| </properties> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.avro</groupId> | |
| <artifactId>avro-maven-plugin</artifactId> | |
| <version>${project.version}</version> | |
| <executions> | |
| <execution> | |
| <phase>generate-test-sources</phase> | |
| <goals> | |
| <goal>schema</goal> | |
| <goal>protocol</goal> | |
| <goal>idl-protocol</goal> | |
| </goals> | |
| <configuration> | |
| <stringType>String</stringType> | |
| <testSourceDirectory>${project.basedir}/src/test/resources/avro</testSourceDirectory> | |
| <testOutputDirectory>${project.build.directory}/generated-test-sources/java</testOutputDirectory> | |
| <enableDecimalLogicalType>true</enableDecimalLogicalType> | |
| <customLogicalTypeFactories> | |
| <logicalTypeFactory>org.apache.avro.codegentest.FixedSizeStringFactory</logicalTypeFactory> | |
| <logicalTypeFactory>org.apache.avro.codegentest.CustomEnumLogicalTypeFactory</logicalTypeFactory> | |
| </customLogicalTypeFactories> | |
| <customConversions> | |
| <conversion>org.apache.avro.codegentest.CustomDecimalConversion</conversion> | |
| <conversion>org.apache.avro.codegentest.FixedSizeStringConversion</conversion> | |
| <conversion>org.apache.avro.Conversions$UUIDConversion</conversion> | |
| <conversion>org.apache.avro.codegentest.CustomEnumConversion</conversion> | |
| </customConversions> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.avro</groupId> | |
| <artifactId>avro-test-custom-conversions</artifactId> | |
| <version>${project.version}</version> | |
| </dependency> | |
| </dependencies> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>build-helper-maven-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>add-test-source</id> | |
| <phase>generate-test-sources</phase> | |
| <goals> | |
| <goal>add-test-source</goal> | |
| </goals> | |
| <configuration> | |
| <sources> | |
| <source>${project.basedir}/target/generated-test-sources/java</source> | |
| </sources> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| <dependencies> | |
| <dependency> | |
| <groupId>${project.groupId}</groupId> | |
| <artifactId>avro</artifactId> | |
| <version>${project.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>${project.groupId}</groupId> | |
| <artifactId>avro-compiler</artifactId> | |
| <version>${project.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>${project.groupId}</groupId> | |
| <artifactId>avro-test-custom-conversions</artifactId> | |
| <version>${project.version}</version> | |
| </dependency> | |
| </dependencies> | |
| </project> |