| <?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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <artifactId>hive-it</artifactId> |
| <groupId>org.apache.hive</groupId> |
| <version>4.0.0-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>hive-it-druid</artifactId> |
| |
| <packaging>jar</packaging> |
| <name>Hive Integration - QFile Druid Tests</name> |
| |
| <!-- dependencies are always listed in sorted order by groupId, artifectId --> |
| <properties> |
| <hive.path.to.root>../..</hive.path.to.root> |
| <druid.avatica.version>1.15.0</druid.avatica.version> |
| <druid.curator.version>4.0.0</druid.curator.version> |
| <druid.jersey.version>1.19.3</druid.jersey.version> |
| <druid.jetty.version>9.4.10.v20180503</druid.jetty.version> |
| <druid.derby.version>10.11.1.1</druid.derby.version> |
| <druid.guava.version>16.0.1</druid.guava.version> |
| <druid.guice.version>4.1.0</druid.guice.version> |
| <kafka.test.version>2.5.0</kafka.test.version> |
| <druid.guice.version>4.1.0</druid.guice.version> |
| <slf4j.version>1.7.30</slf4j.version> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.druid</groupId> |
| <artifactId>druid-server</artifactId> |
| <version>${druid.version}</version> |
| <exclusions> |
| <exclusion> |
| <artifactId>jersey-server</artifactId> |
| <groupId>com.sun.jersey</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jersey-servlet</artifactId> |
| <groupId>com.sun.jersey</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jersey-core</artifactId> |
| <groupId>com.sun.jersey</groupId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.jboss.netty</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.druid</groupId> |
| <artifactId>druid-services</artifactId> |
| <version>${druid.version}</version> |
| <exclusions> |
| <exclusion> |
| <artifactId>jersey-server</artifactId> |
| <groupId>com.sun.jersey</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jersey-servlet</artifactId> |
| <groupId>com.sun.jersey</groupId> |
| </exclusion> |
| <exclusion> |
| <artifactId>jersey-core</artifactId> |
| <groupId>com.sun.jersey</groupId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.jboss.netty</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>${druid.guava.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.druid.extensions</groupId> |
| <artifactId>druid-hdfs-storage</artifactId> |
| <version>${druid.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-servlet</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-client</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.druid.extensions</groupId> |
| <artifactId>druid-bloom-filter</artifactId> |
| <version>${druid.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.druid.extensions</groupId> |
| <artifactId>druid-kafka-indexing-service</artifactId> |
| <version>${druid.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.druid.extensions</groupId> |
| <artifactId>druid-avro-extensions</artifactId> |
| <version>${druid.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-api</artifactId> |
| <version>${log4j2.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <version>${log4j2.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.curator</groupId> |
| <artifactId>curator-framework</artifactId> |
| <version>${druid.curator.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.curator</groupId> |
| <artifactId>curator-client</artifactId> |
| <version>${druid.curator.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.curator</groupId> |
| <artifactId>curator-x-discovery</artifactId> |
| <version>${druid.curator.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.curator</groupId> |
| <artifactId>curator-recipes</artifactId> |
| <version>${druid.curator.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.calcite.avatica</groupId> |
| <artifactId>avatica</artifactId> |
| <version>${avatica.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.calcite.avatica</groupId> |
| <artifactId>avatica-core</artifactId> |
| <version>${avatica.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.calcite.avatica</groupId> |
| <artifactId>avatica-metrics</artifactId> |
| <version>${avatica.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.calcite.avatica</groupId> |
| <artifactId>avatica-server</artifactId> |
| <version>${avatica.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-bundle</artifactId> |
| <version>${druid.jersey.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-server</artifactId> |
| <version>${druid.jetty.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-servlet</artifactId> |
| <version>${druid.jetty.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-servlets</artifactId> |
| <version>${druid.jetty.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-proxy</artifactId> |
| <version>${druid.jetty.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-util</artifactId> |
| <version>${druid.jetty.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-security</artifactId> |
| <version>${druid.jetty.version}</version> |
| </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.hadoop</groupId> |
| <artifactId>hadoop-annotations</artifactId> |
| <scope>compile</scope> |
| <version>${hadoop.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.inject</groupId> |
| <artifactId>guice</artifactId> |
| <version>${druid.guice.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>kafka_2.12</artifactId> |
| <version>${kafka.test.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>kafka-clients</artifactId> |
| <version>${kafka.test.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| </dependencies> |
| <build> |
| |
| <plugins> |
| <!-- Maven Shade Plugin --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <!-- Run shade goal on package phase --> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <shadeTestJar>false</shadeTestJar> |
| <createDependencyReducedPom>false</createDependencyReducedPom> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <mainClass>org.apache.druid.cli.Main</mainClass> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| </transformers> |
| <artifactSet> |
| <excludes> |
| <exclude>junit:*</exclude> |
| <exclude>jmock:*</exclude> |
| <exclude>*:xml-apis</exclude> |
| <exclude>org.apache.maven:lib:tests</exclude> |
| <exclude>javax.ws.rs:jsr311-api</exclude> |
| <exclude>*:javax.el-api</exclude> |
| <exclude>*:jsp-api*</exclude> |
| </excludes> |
| </artifactSet> |
| <relocations> |
| <relocation> |
| <pattern>org.apache.kafka</pattern> |
| <shadedPattern>org.apache.kafkatests</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.jboss.netty</pattern> |
| <shadedPattern>org.apache.hive.druid.org.jboss.netty</shadedPattern> |
| </relocation> |
| </relocations> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| <exclude>META-INF/versions/**</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>setup-metastore-scripts</id> |
| <phase>process-test-resources</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <mkdir dir="${test.tmp.dir}/scripts/metastore" /> |
| <copy todir="${test.tmp.dir}/scripts/metastore"> |
| <fileset dir="${basedir}/${hive.path.to.root}/metastore/scripts/"/> |
| </copy> |
| <copy todir="${test.tmp.dir}/scripts/metastore/upgrade" overwrite="true"> |
| <fileset dir="${basedir}/${hive.path.to.root}/standalone-metastore/metastore-server/src/main/sql/"/> |
| </copy> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |