| <?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-parent</artifactId> |
| <groupId>org.apache.avro</groupId> |
| <version>1.11.2-SNAPSHOT</version> |
| <relativePath>../</relativePath> |
| </parent> |
| |
| <artifactId>avro-ipc</artifactId> |
| |
| <name>Apache Avro IPC</name> |
| <url>https://avro.apache.org</url> |
| <description>Avro inter-process communication components</description> |
| <packaging>bundle</packaging> |
| |
| <properties> |
| <main.basedir>${project.parent.parent.basedir}</main.basedir> |
| <osgi.import> |
| !org.apache.avro.ipc*, |
| org.apache.avro*;version="${project.version}", |
| javax.servlet*;resolution:=optional, |
| org.apache.velocity*;resolution:=optional, |
| * |
| </osgi.import> |
| <osgi.export>org.apache.avro.ipc*;version="${project.version}"</osgi.export> |
| <osgi.dynamic.import>org.apache.avro.ipc.jetty,org.apache.avro.ipc.netty</osgi.dynamic.import> |
| </properties> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/velocity</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <!-- some tests hang if not run in a separate JVM --> |
| <forkCount>1</forkCount> |
| <reuseForks>false</reuseForks> |
| <parallel>none</parallel> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>${project.groupId}</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> |
| <excludes> |
| <exclude>**/mapred/tether/**</exclude> |
| <exclude>org/apache/avro/data/Json.avsc</exclude> |
| </excludes> |
| <stringType>String</stringType> |
| <createOptionalGetters>true</createOptionalGetters> |
| <!--<gettersReturnOptional>true</gettersReturnOptional>--> |
| <sourceDirectory>${parent.project.basedir}/../../../../share/schemas/</sourceDirectory> |
| <outputDirectory>${project.build.directory}/generated-sources/java</outputDirectory> |
| <testSourceDirectory>${parent.project.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-jar-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifestEntries> |
| <Automatic-Module-Name>org.apache.avro.ipc</Automatic-Module-Name> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| </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> |
| <execution> |
| <id>add-source</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>${project.basedir}/target/generated-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</artifactId> |
| <version>${project.version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>avro-compiler</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.velocity</groupId> |
| <artifactId>velocity-engine-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>javax.servlet-api</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <!-- javax.annotation-api dependency must be explicit for forward compatibility (Java > 9) --> |
| <dependency> |
| <groupId>javax.annotation</groupId> |
| <artifactId>javax.annotation-api</artifactId> |
| <version>1.3.2</version> |
| </dependency> |
| <dependency> |
| <groupId>org.xerial.snappy</groupId> |
| <artifactId>snappy-java</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.tukaani</groupId> |
| <artifactId>xz</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.github.luben</groupId> |
| <artifactId>zstd-jni</artifactId> |
| </dependency> |
| |
| </dependencies> |
| |
| </project> |