| <?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 |
| ~ |
| ~ 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"> |
| |
| <groupId>org.apache.druid.extensions.contrib</groupId> |
| <artifactId>druid-thrift-extensions</artifactId> |
| <name>druid-thrift-extensions</name> |
| <description>druid-thrift-extensions</description> |
| |
| <parent> |
| <artifactId>druid</artifactId> |
| <groupId>org.apache.druid</groupId> |
| <version>0.22.0-SNAPSHOT</version> |
| <relativePath>../../pom.xml</relativePath> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <properties> |
| <thrift.version>0.13.0</thrift.version> |
| <elephantbird.version>4.17</elephantbird.version> |
| <scrooge.version>19.10.0</scrooge.version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.druid</groupId> |
| <artifactId>druid-core</artifactId> |
| <version>${project.parent.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| <version>${thrift.version}</version> |
| <exclusions> |
| <exclusion> |
| <artifactId>commons-logging</artifactId> |
| <groupId>commons-logging</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>httpclient</artifactId> |
| <groupId>org.apache.httpcomponents</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>httpcore</artifactId> |
| <groupId>org.apache.httpcomponents</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.druid</groupId> |
| <artifactId>druid-indexing-hadoop</artifactId> |
| <version>${project.parent.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-client</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.twitter.elephantbird</groupId> |
| <artifactId>elephant-bird-core</artifactId> |
| <version>${elephantbird.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.thrift</groupId> |
| <artifactId>libthrift</artifactId> |
| </exclusion> |
| <exclusion> |
| <artifactId>hadoop-lzo</artifactId> |
| <groupId>com.hadoop.gplcompression</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.twitter.elephantbird</groupId> |
| <artifactId>elephant-bird-hadoop-compat</artifactId> |
| <version>${elephantbird.version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-annotations</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>com.google.inject</groupId> |
| <artifactId>guice</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.twitter</groupId> |
| <artifactId>scrooge-core_2.11</artifactId> |
| <version>${scrooge.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>com.twitter</groupId> |
| <artifactId>scrooge-maven-plugin</artifactId> |
| <version>${scrooge.version}</version> |
| <configuration> |
| <language>java</language> |
| </configuration> |
| <executions> |
| <execution> |
| <id>thrift-test-sources</id> |
| <phase>generate-test-sources</phase> |
| <goals> |
| <goal>testCompile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>3.0.0</version> |
| <executions> |
| <execution> |
| <id>add-thrift-test-source</id> |
| <phase>generate-test-sources</phase> |
| <goals> |
| <goal>add-test-source</goal> |
| </goals> |
| <configuration> |
| <sources> |
| <source>${project.build.directory}/generated-test-sources/thrift/scrooge</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>strict</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <compilerArgs> |
| <!-- Thrift-generated classes miss @Override, that is not easy to fix --> |
| <arg>-Xep:MissingOverride:WARN</arg> |
| </compilerArgs> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |