| <?xml version="1.0"?> |
| <!-- Copyright (C) 2017-2018 Dremio Corporation Licensed 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"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-java-root</artifactId> |
| <version>0.15.1-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>arrow-flight</artifactId> |
| <name>Arrow Flight</name> |
| <description>(Experimental)An RPC mechanism for transferring ValueVectors.</description> |
| <packaging>jar</packaging> |
| |
| <properties> |
| <dep.grpc.version>1.14.0</dep.grpc.version> |
| <dep.protobuf.version>3.5.1</dep.protobuf.version> |
| <forkCount>1</forkCount> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-vector</artifactId> |
| <version>${project.version}</version> |
| <classifier>${arrow.vector.classifier}</classifier> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.arrow</groupId> |
| <artifactId>arrow-memory</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-netty</artifactId> |
| <version>${dep.grpc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-core</artifactId> |
| <version>${dep.grpc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-context</artifactId> |
| <version>${dep.grpc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-protobuf</artifactId> |
| <version>${dep.grpc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-tcnative-boringssl-static</artifactId> |
| <version>2.0.12.Final</version> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-buffer</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-handler</artifactId> |
| <version>${dep.netty.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-transport</artifactId> |
| <version>${dep.netty.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-cli</groupId> |
| <artifactId>commons-cli</artifactId> |
| <version>1.4</version> |
| </dependency> |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-stub</artifactId> |
| <version>${dep.grpc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| <version>3.5.1</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-annotations</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>javax.annotation</groupId> |
| <artifactId>javax.annotation-api</artifactId> |
| </dependency> |
| </dependencies> |
| <build> |
| <extensions> |
| <extension> |
| <groupId>kr.motd.maven</groupId> |
| <artifactId>os-maven-plugin</artifactId> |
| <version>1.5.0.Final</version> |
| </extension> |
| </extensions> |
| <plugins> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <enableAssertions>false</enableAssertions> |
| <systemPropertyVariables> |
| <arrow.test.dataRoot>${project.basedir}/../../testing/data</arrow.test.dataRoot> |
| </systemPropertyVariables> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>3.1.1</version> |
| <executions> |
| <execution> |
| <id>shade-main</id> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <shadedArtifactAttached>true</shadedArtifactAttached> |
| <shadedClassifierName>shaded</shadedClassifierName> |
| <artifactSet> |
| <includes> |
| <include>io.grpc:*</include> |
| <include>com.google.protobuf:*</include> |
| </includes> |
| </artifactSet> |
| <relocations> |
| <relocation> |
| <pattern>com.google.protobuf</pattern> |
| <shadedPattern>arrow.flight.com.google.protobuf</shadedPattern> |
| </relocation> |
| </relocations> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| </transformers> |
| </configuration> |
| </execution> |
| <execution> |
| <id>shade-ext</id> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <shadedArtifactAttached>true</shadedArtifactAttached> |
| <shadedClassifierName>shaded-ext</shadedClassifierName> |
| <artifactSet> |
| <includes> |
| <include>io.grpc:*</include> |
| <include>com.google.protobuf:*</include> |
| <include>com.google.guava:*</include> |
| </includes> |
| </artifactSet> |
| <relocations> |
| <relocation> |
| <pattern>com.google.protobuf</pattern> |
| <shadedPattern>arrow.flight.com.google.protobuf</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.google.common</pattern> |
| <shadedPattern>arrow.flight.com.google.common</shadedPattern> |
| </relocation> |
| </relocations> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.xolstice.maven.plugins</groupId> |
| <artifactId>protobuf-maven-plugin</artifactId> |
| <version>0.5.0</version> |
| <configuration> |
| <protocArtifact>com.google.protobuf:protoc:${dep.protobuf.version}:exe:${os.detected.classifier}</protocArtifact> |
| <clearOutputDirectory>false</clearOutputDirectory> |
| <pluginId>grpc-java</pluginId> |
| <pluginArtifact>io.grpc:protoc-gen-grpc-java:${dep.grpc.version}:exe:${os.detected.classifier}</pluginArtifact> |
| </configuration> |
| <executions> |
| <execution> |
| <id>src</id> |
| <configuration> |
| <protoSourceRoot>${basedir}/../../format/</protoSourceRoot> |
| <outputDirectory>${project.build.directory}/generated-sources/protobuf</outputDirectory> |
| </configuration> |
| <goals> |
| <goal>compile</goal> |
| <goal>compile-custom</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>test</id> |
| <configuration> |
| <protoSourceRoot>${basedir}/src/test/protobuf</protoSourceRoot> |
| <outputDirectory>${project.build.directory}/generated-test-sources//protobuf</outputDirectory> |
| </configuration> |
| <goals> |
| <goal>compile</goal> |
| <goal>compile-custom</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <version>1.6.0</version> |
| <configuration> |
| <executable>java</executable> |
| <classpathScope>test</classpathScope> |
| <arguments> |
| <argument>-classpath</argument> |
| <classpath /> |
| <argument>-Xms64m</argument> |
| <argument>-Xmx64m</argument> |
| <argument>-XX:MaxDirectMemorySize=4g</argument> |
| <argument>org.apache.arrow.flight.example.ExampleFlightServer</argument> |
| </arguments> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>analyze</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>analyze-only</goal> |
| </goals> |
| <configuration> |
| <ignoredDependencies combine.children="append"> |
| <ignoredDependency>io.netty:netty-tcnative-boringssl-static:*</ignoredDependency> |
| </ignoredDependencies> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> <!-- add generated sources to classpath --> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>1.9.1</version> |
| <executions> |
| <execution> |
| <id>add-generated-sources-to-classpath</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>${project.build.directory}/generated-sources/protobuf</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <version>3.0.0</version> |
| <configuration> |
| <descriptorRefs> |
| <descriptorRef>jar-with-dependencies</descriptorRef> |
| </descriptorRefs> |
| </configuration> |
| <executions> |
| <execution> |
| <id>make-assembly</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>linux-netty-native</id> |
| <activation> |
| <os> |
| <family>linux</family> |
| </os> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-transport-native-unix-common</artifactId> |
| <version>${dep.netty.version}</version> |
| <classifier>${os.detected.name}-${os.detected.arch}</classifier> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-transport-native-epoll</artifactId> |
| <version>${dep.netty.version}</version> |
| <classifier>${os.detected.name}-${os.detected.arch}</classifier> |
| </dependency> |
| </dependencies> |
| </profile> |
| <profile> |
| <id>mac-netty-native</id> |
| <activation> |
| <os> |
| <family>mac</family> |
| </os> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-transport-native-unix-common</artifactId> |
| <version>${dep.netty.version}</version> |
| <classifier>${os.detected.name}-${os.detected.arch}</classifier> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-transport-native-kqueue</artifactId> |
| <version>${dep.netty.version}</version> |
| <classifier>${os.detected.name}-${os.detected.arch}</classifier> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| </project> |