<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>hudi</artifactId>
    <groupId>org.apache.hudi</groupId>
    <version>0.12.2</version>
    <relativePath>../../../pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>hudi-integ-test-bundle</artifactId>
  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
      <resource>
        <directory>src/test/resources</directory>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>${maven-shade-plugin.version}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <createSourcesJar>${shadeSources}</createSourcesJar>
              <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
              <transformers>
                <transformer />
                <transformer>
                  <addHeader>true</addHeader>
                </transformer>
                <transformer>
                  <resource>META-INF/LICENSE</resource>
                  <file>target/classes/META-INF/LICENSE</file>
                </transformer>
                <transformer>
                  <resource>META-INF/services/org.apache.spark.sql.sources.DataSourceRegister</resource>
                </transformer>
                <transformer />
              </transformers>
              <artifactSet>
                <includes>
                  <include>commons-codec:commons-codec</include>
                  <include>commons-dbcp:commons-dbcp</include>
                  <include>commons-lang:commons-lang</include>
                  <include>commons-pool:commons-pool</include>
                  <include>org.apache.hudi:hudi-common</include>
                  <include>org.apache.hudi:hudi-client-common</include>
                  <include>org.apache.hudi:hudi-spark-client</include>
                  <include>org.apache.hudi:hudi-spark-common_${scala.binary.version}</include>
                  <include>org.apache.hudi:hudi-spark_${scala.binary.version}</include>
                  <include>org.apache.hudi:${hudi.spark.module}_${scala.binary.version}</include>
                  <include>org.apache.hudi:${hudi.spark.common.modules.1}</include>
                  <include>org.apache.hudi:${hudi.spark.common.modules.2}</include>
                  <include>org.apache.hudi:hudi-utilities_${scala.binary.version}</include>
                  <include>org.apache.hudi:hudi-hive-sync</include>
                  <include>org.apache.hudi:hudi-sync-common</include>
                  <include>org.apache.hudi:hudi-hadoop-mr</include>
                  <include>org.apache.hudi:hudi-timeline-service</include>
                  <include>org.apache.hudi:hudi-integ-test</include>
                  <include>org.apache.hbase:hbase-common</include>
                  <include>org.apache.hbase:hbase-client</include>
                  <include>org.apache.hbase:hbase-hadoop-compat</include>
                  <include>org.apache.hbase:hbase-hadoop2-compat</include>
                  <include>org.apache.hbase:hbase-metrics</include>
                  <include>org.apache.hbase:hbase-metrics-api</include>
                  <include>org.apache.hbase:hbase-protocol</include>
                  <include>org.apache.hbase:hbase-protocol-shaded</include>
                  <include>org.apache.hbase:hbase-server</include>
                  <include>org.apache.hbase.thirdparty:hbase-shaded-miscellaneous</include>
                  <include>org.apache.hbase.thirdparty:hbase-shaded-netty</include>
                  <include>org.apache.hbase.thirdparty:hbase-shaded-protobuf</include>
                  <include>org.apache.htrace:htrace-core4</include>
                  <include>commons-io:commons-io</include>
                  <include>com.facebook.presto:presto-jdbc</include>
                  <include>io.trino:trino-jdbc</include>
                  <include>org.jetbrains.kotlin:kotlin-stdlib-jdk8</include>
                  <include>org.jetbrains.kotlin:kotlin-stdlib</include>
                  <include>org.jetbrains.kotlin:kotlin-stdlib-common</include>
                  <include>org.jetbrains:annotations</include>
                  <include>org.jetbrains.kotlin:kotlin-stdlib-jdk7</include>
                  <include>org.eclipse.jetty:jetty-server</include>
                  <include>org.eclipse.jetty:jetty-http</include>
                  <include>org.eclipse.jetty:jetty-util</include>
                  <include>org.eclipse.jetty:jetty-io</include>
                  <include>org.eclipse.jetty:jetty-webapp</include>
                  <include>org.eclipse.jetty:jetty-xml</include>
                  <include>org.eclipse.jetty:jetty-servlet</include>
                  <include>org.eclipse.jetty:jetty-security</include>
                  <include>org.eclipse.jetty.websocket:websocket-server</include>
                  <include>org.eclipse.jetty.websocket:websocket-common</include>
                  <include>org.eclipse.jetty.websocket:websocket-api</include>
                  <include>org.eclipse.jetty.websocket:websocket-client</include>
                  <include>org.eclipse.jetty:jetty-client</include>
                  <include>org.eclipse.jetty.websocket:websocket-servlet</include>
                  <include>org.mortbay.jetty:jetty</include>
                  <include>org.mortbay.jetty:jetty-util</include>
                  <include>org.rocksdb:rocksdbjni</include>
                  <include>com.github.ben-manes.caffeine:caffeine</include>
                  <include>com.beust:jcommander</include>
                  <include>com.twitter:bijection-avro_${scala.binary.version}</include>
                  <include>com.twitter:bijection-core_${scala.binary.version}</include>
                  <include>org.apache.parquet:parquet-avro</include>
                  <include>com.twitter:parquet-avro</include>
                  <include>com.twitter.common:objectsize</include>
                  <include>io.confluent:kafka-avro-serializer</include>
                  <include>io.confluent:common-config</include>
                  <include>io.confluent:common-utils</include>
                  <include>io.confluent:kafka-schema-registry-client</include>
                  <include>org.apache.kafka:kafka_${scala.binary.version}</include>
                  <include>org.apache.kafka:kafka-clients</include>
                  <include>io.dropwizard.metrics:metrics-core</include>
                  <include>io.dropwizard.metrics:metrics-graphite</include>
                  <include>io.javalin:javalin</include>
                  <include>org.apache.spark:spark-streaming-kafka-0-10_${scala.binary.version}</include>
                  <include>com.101tec:zkclient</include>
                  <include>org.apache.hive:hive-common</include>
                  <include>org.apache.hive:hive-service</include>
                  <include>org.apache.hive:hive-jdbc</include>
                  <include>org.apache.hive:hive-exec</include>
                  <include>com.yammer.metrics:metrics-core</include>
                  <include>org.apache.thrift:libfb303</include>
                  <include>org.apache.thrift:libthrift</include>
                  <include>com.fasterxml.jackson.core:jackson-annotations</include>
                  <include>com.fasterxml.jackson.core:jackson-core</include>
                  <include>com.fasterxml.jackson.core:jackson-databind</include>
                  <include>com.fasterxml.jackson.dataformat:jackson-dataformat-yaml</include>
                  <include>org.apache.curator:curator-framework</include>
                  <include>org.apache.curator:curator-client</include>
                  <include>org.apache.curator:curator-recipes</include>
                  <include>io.prometheus:simpleclient</include>
                  <include>io.prometheus:simpleclient_httpserver</include>
                  <include>io.prometheus:simpleclient_dropwizard</include>
                  <include>io.prometheus:simpleclient_pushgateway</include>
                  <include>io.prometheus:simpleclient_common</include>
                  <include>org.openjdk.jol:jol-core</include>
                </includes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>org.apache.spark.sql.avro.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.spark.sql.avro.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.beust.jcommander.</pattern>
                  <shadedPattern>org.apache.hudi.com.beust.jcommander.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons.dbcp.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.commons.dbcp.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons.lang.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.commons.lang.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons.pool.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.commons.pool.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons.io.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.commons.io.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.hbase.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.hbase.</shadedPattern>
                  <excludes>
                    <exclude>org.apache.hadoop.hbase.KeyValue$KeyComparator</exclude>
                  </excludes>
                </relocation>
                <relocation>
                  <pattern>org.apache.hbase.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hbase.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.htrace.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.htrace.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hive.jdbc.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hive.jdbc.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hive.common.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hive.common.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.hive.common.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.hive.common.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.hive.shims.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.hive.shims.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.hive.thrift.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.hive.thrift.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.hive.serde2.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.hive.serde2.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.hive.io.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.hive.io.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hive.service.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hive.service.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.hive.service.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop_hive.service.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hive.org.apache.thrift.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hive.org.apache.thrift.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.thrift.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.thrift.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.facebook.fb303.</pattern>
                  <shadedPattern>org.apache.hudi.com.facebook.fb303.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hive.jdbc.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hive.jdbc.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.codahale.metrics.</pattern>
                  <shadedPattern>org.apache.hudi.com.codahale.metrics.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons.codec.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.commons.codec.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.fasterxml.jackson.dataformat.</pattern>
                  <shadedPattern>org.apache.hudi.com.fasterxml.jackson.dataformat.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.parquet.avro.</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.parquet.avro.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.openjdk.jol.</pattern>
                  <shadedPattern>org.apache.hudi.org.openjdk.jol.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.MetricHistogram</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.MetricHistogram</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.MetricsExecutor</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.MetricsExecutor</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.impl.JmxCacheBuster</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.impl.JmxCacheBuster</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.lib.DefaultMetricsSystemHelper</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.lib.DefaultMetricsSystemHelper</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.lib.DynamicMetricsRegistry</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.lib.DynamicMetricsRegistry</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.lib.MetricsExecutorImpl</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.lib.MetricsExecutorImpl</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.lib.MutableFastCounter</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.lib.MutableFastCounter</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.lib.MutableHistogram</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.lib.MutableHistogram</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.lib.MutableRangeHistogram</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.lib.MutableRangeHistogram</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.lib.MutableSizeHistogram</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.lib.MutableSizeHistogram</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.lib.MutableTimeHistogram</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.lib.MutableTimeHistogram</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.util.MetricQuantile</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.util.MetricQuantile</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.hadoop.metrics2.util.MetricSampleQuantiles</pattern>
                  <shadedPattern>org.apache.hudi.org.apache.hadoop.metrics2.util.MetricSampleQuantiles</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/NOTICE*</exclude>
                    <exclude>META-INF/LICENSE*</exclude>
                    <exclude>**/*.proto</exclude>
                    <exclude>hbase-webapps/**</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <id>confluent</id>
      <url>https://packages.confluent.io/maven/</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>com.fasterxml.jackson.module</groupId>
      <artifactId>jackson-module-scala_2.12</artifactId>
      <version>2.10.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.hudi</groupId>
      <artifactId>hudi-client-common</artifactId>
      <version>0.12.2</version>
      <type>test-jar</type>
      <classifier>tests</classifier>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.hudi</groupId>
      <artifactId>hudi-spark-client</artifactId>
      <version>0.12.2</version>
      <type>test-jar</type>
      <classifier>tests</classifier>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-hdfs</artifactId>
      <version>2.10.1</version>
      <classifier>tests</classifier>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>log4j</artifactId>
          <groupId>log4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>servlet-api</artifactId>
          <groupId>javax.servlet</groupId>
        </exclusion>
        <exclusion>
          <artifactId>xercesImpl</artifactId>
          <groupId>xerces</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-common</artifactId>
      <version>2.10.1</version>
      <classifier>tests</classifier>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <artifactId>*</artifactId>
          <groupId>org.mortbay.jetty</groupId>
        </exclusion>
        <exclusion>
          <artifactId>*</artifactId>
          <groupId>javax.servlet.jsp</groupId>
        </exclusion>
        <exclusion>
          <artifactId>*</artifactId>
          <groupId>javax.servlet</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.hive</groupId>
      <artifactId>hive-metastore</artifactId>
      <version>2.3.1</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>*</artifactId>
          <groupId>org.apache.hbase</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.hive</groupId>
      <artifactId>hive-jdbc</artifactId>
      <version>2.3.1</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>slf4j-api</artifactId>
          <groupId>org.slf4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>servlet-api</artifactId>
          <groupId>javax.servlet</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-mapreduce-client-common</artifactId>
      <version>2.10.1</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>servlet-api</artifactId>
          <groupId>javax.servlet</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-client</artifactId>
      <version>2.10.1</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>servlet-api</artifactId>
          <groupId>javax.servlet</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jaxb-api</artifactId>
          <groupId>javax.xml.bind</groupId>
        </exclusion>
        <exclusion>
          <artifactId>slf4j-log4j12</artifactId>
          <groupId>org.slf4j</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.spark</groupId>
      <artifactId>spark-core_2.12</artifactId>
      <version>3.1.3</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>*</artifactId>
          <groupId>org.slf4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>log4j</artifactId>
          <groupId>log4j</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.spark</groupId>
      <artifactId>spark-sql_2.12</artifactId>
      <version>3.1.3</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.spark</groupId>
      <artifactId>spark-streaming_2.12</artifactId>
      <version>3.1.3</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.antlr</groupId>
      <artifactId>stringtemplate</artifactId>
      <version>4.0.2</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-all</artifactId>
      <version>1.10.19</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.avro</groupId>
      <artifactId>avro-mapred</artifactId>
      <version>1.7.7</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.parquet</groupId>
      <artifactId>parquet-hadoop</artifactId>
      <version>1.10.1</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <properties>
    <skipTests>true</skipTests>
    <main.basedir>${project.parent.basedir}</main.basedir>
    <checkstyle.skip>true</checkstyle.skip>
  </properties>
</project>
