<?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>kyuubi-parent</artifactId>
    <groupId>org.apache.kyuubi</groupId>
    <version>1.8.2</version>
    <relativePath>../../pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>kyuubi-hive-sql-engine_2.12</artifactId>
  <name>Kyuubi Project Engine Hive SQL</name>
  <url>https://kyuubi.apache.org/</url>
  <build>
    <outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
    <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <shadedArtifactAttached>false</shadedArtifactAttached>
          <artifactSet>
            <includes>
              <include>org.scala-lang:scala-library</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.module:jackson-module-scala_${scala.binary.version}</include>
              <include>org.apache.hive:hive-service-rpc</include>
              <include>org.apache.kyuubi:*</include>
            </includes>
          </artifactSet>
          <filters>
            <filter>
              <artifact>*:*</artifact>
              <excludes>
                <exclude>META-INF/*.SF</exclude>
                <exclude>META-INF/*.DSA</exclude>
                <exclude>META-INF/*.RSA</exclude>
                <exclude>META-INF/DEPENDENCIES</exclude>
                <exclude>META-INF/LICENSE.txt</exclude>
                <exclude>META-INF/NOTICE.txt</exclude>
                <exclude>META-INF/maven/**</exclude>
                <exclude>LICENSE.txt</exclude>
                <exclude>NOTICE.txt</exclude>
                <exclude>mozilla/**</exclude>
                <exclude>**/module-info.class</exclude>
              </excludes>
            </filter>
          </filters>
          <relocations>
            <relocation>
              <pattern>com.fasterxml.jackson</pattern>
              <shadedPattern>${kyuubi.shade.packageName}.com.fasterxml.jackson</shadedPattern>
              <includes>
                <include>com.fasterxml.jackson.**</include>
              </includes>
            </relocation>
          </relocations>
          <transformers>
            <transformer />
          </transformers>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>prepare-test-jar</id>
            <phase>test-compile</phase>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.google.code.findbugs</groupId>
      <artifactId>jsr305</artifactId>
      <version>3.0.2</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.2.2</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>failureaccess</artifactId>
      <version>1.0.1</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.hive</groupId>
      <artifactId>hive-service</artifactId>
      <version>3.1.3</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>pentaho-aggdesigner-algorithm</artifactId>
          <groupId>org.pentaho</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hive-llap-server</artifactId>
          <groupId>org.apache.hive</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hive-llap-tez</artifactId>
          <groupId>org.apache.hive</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hive-shims</artifactId>
          <groupId>org.apache.hive</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hadoop-yarn-registry</artifactId>
          <groupId>org.apache.hadoop</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.hive</groupId>
      <artifactId>hive-metastore</artifactId>
      <version>3.1.3</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>hive-serde</artifactId>
          <groupId>org.apache.hive</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hive-shims</artifactId>
          <groupId>org.apache.hive</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hbase-client</artifactId>
          <groupId>org.apache.hbase</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hadoop-common</artifactId>
          <groupId>org.apache.hadoop</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hadoop-hdfs</artifactId>
          <groupId>org.apache.hadoop</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.kyuubi</groupId>
      <artifactId>kyuubi-common_2.12</artifactId>
      <version>1.8.2</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.kyuubi</groupId>
      <artifactId>kyuubi-hive-jdbc</artifactId>
      <version>1.8.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>arrow-vector</artifactId>
          <groupId>org.apache.arrow</groupId>
        </exclusion>
        <exclusion>
          <artifactId>arrow-memory-netty</artifactId>
          <groupId>org.apache.arrow</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jackson-datatype-jsr310</artifactId>
          <groupId>com.fasterxml.jackson.datatype</groupId>
        </exclusion>
        <exclusion>
          <artifactId>httpclient</artifactId>
          <groupId>org.apache.httpcomponents</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.zaxxer</groupId>
      <artifactId>HikariCP</artifactId>
      <version>4.0.3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.vladsch.flexmark</groupId>
      <artifactId>flexmark-all</artifactId>
      <version>0.62.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>flexmark</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-abbreviation</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-admonition</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-anchorlink</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-aside</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-attributes</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-autolink</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-definition</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-emoji</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-enumerated-reference</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-escaped-character</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-footnotes</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-gfm-issues</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-gfm-strikethrough</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-gfm-tasklist</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-gfm-users</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-gitlab</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-jekyll-front-matter</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-jekyll-tag</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-media-tags</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-macros</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-ins</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-xwiki-macros</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-superscript</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-tables</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-toc</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-typographic</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-wikilink</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-yaml-front-matter</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-ext-youtube-embedded</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-html2md-converter</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-jira-converter</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-pdf-converter</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-profile-pegdown</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-util-ast</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-util-builder</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-util-collection</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-util-data</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-util-dependency</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-util-format</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-util-html</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-util-misc</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-util-options</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-util-sequence</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-util-visitor</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>flexmark-youtrack-converter</artifactId>
          <groupId>com.vladsch.flexmark</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.scalatest</groupId>
      <artifactId>scalatest_2.12</artifactId>
      <version>3.2.16</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>scalatest-core_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scalatest-featurespec_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scalatest-flatspec_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scalatest-freespec_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scalatest-funsuite_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scalatest-funspec_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scalatest-propspec_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scalatest-refspec_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scalatest-wordspec_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scalatest-diagrams_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scalatest-matchers-core_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scalatest-shouldmatchers_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scalatest-mustmatchers_2.12</artifactId>
          <groupId>org.scalatest</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scala-reflect</artifactId>
          <groupId>org.scala-lang</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
</project>
