<?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>exec-parent</artifactId>
    <groupId>org.apache.drill.exec</groupId>
    <version>1.12.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>drill-jdbc-all</artifactId>
  <name>JDBC JAR with all dependencies</name>
  <build>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/resources</directory>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>define-classpath</id>
            <phase>integration-test</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <exportAntProperties>true</exportAntProperties>
              <target>
                <property />
              </target>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-failsafe-plugin</artifactId>
        <version>2.18.1</version>
        <executions>
          <execution>
            <goals>
              <goal>integration-test</goal>
              <goal>verify</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <argLine>-Xms512m -Xmx3g -Ddrill.exec.http.enabled=false -Djava.net.preferIPv4Stack=true
            -Ddrill.exec.sys.store.provider.local.write=false
            -Dorg.apache.drill.exec.server.Drillbit.system_options="org.apache.drill.exec.compile.ClassTransformer.scalar_replacement=on"
            -XX:MaxPermSize=256M -XX:MaxDirectMemorySize=3072M
            -XX:+CMSClassUnloadingEnabled -ea</argLine>
          <additionalClasspathElements>
            <additionalClasspathElements>${settings.localRepository}/junit/junit/${junit.version}/junit-${junit.version}.jar</additionalClasspathElements>
            <additionalClasspathElements>${settings.localRepository}/org/hamcrest/hamcrest-core/${hamcrest.core.version}/hamcrest-core-${hamcrest.core.version}.jar</additionalClasspathElements>
            <additionalClasspathElements>${project.build.directory}/test-classes/</additionalClasspathElements>
          </additionalClasspathElements>
          <systemPropertyVariables>
            <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
            <app.class.path>${app.class.path}</app.class.path>
            <project.version>${project.version}</project.version>
          </systemPropertyVariables>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.4.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <shadedArtifactAttached>false</shadedArtifactAttached>
          <createDependencyReducedPom>true</createDependencyReducedPom>
          <minimizeJar>false</minimizeJar>
          <artifactSet>
            <includes>
              <include>*:*</include>
            </includes>
            <excludes>
              <exclude>com.dyuproject.protostuff:*</exclude>
              <exclude>org.apache.calcite:calcite-core</exclude>
              <exclude>org.apache.calcite:calcite-linq4j</exclude>
              <exclude>org.pentaho:*</exclude>
              <exclude>org.msgpack:*</exclude>
              <exclude>xerces:*</exclude>
              <exclude>xalan:*</exclude>
              <exclude>org.apache.avro:*</exclude>
              <exclude>org.mongodb:*</exclude>
              <exclude>com.googlecode.json-simple:*</exclude>
              <exclude>dom4j:*</exclude>
              <exclude>org.hibernate:*</exclude>
              <exclude>antlr:*</exclude>
              <exclude>org.ow2.asm:*</exclude>
              <exclude>com.univocity:*</exclude>
              <exclude>net.sf.jpam:*</exclude>
              <exclude>com.twitter:*</exclude>
              <exclude>org.apache.parquet:*</exclude>
              <exclude>javax.inject:*</exclude>
              <exclude>com.beust:*</exclude>
              <exclude>jline:*</exclude>
              <exclude>io.netty:netty:jar:3.7.0.Final</exclude>
              <exclude>org.xerial.snappy:*</exclude>
              <exclude>org.apache.avro:*</exclude>
              <exclude>org.tukaani:*</exclude>
              <exclude>org.apache.velocity:*</exclude>
              <exclude>net.hydromatic:linq4j</exclude>
              <exclude>org.mortbay.jetty:*</exclude>
              <exclude>org.slf4j:jul-to-slf4j</exclude>
              <exclude>org.slf4j:log4j-over-slf4j</exclude>
              <exclude>org.hamcrest:hamcrest-core</exclude>
              <exclude>org.mockito:mockito-core</exclude>
              <exclude>org.objenesis:objenesis</exclude>
              <exclude>org.eclipse.jetty:*</exclude>
              <exclude>javax.xml.bind:jaxb-api</exclude>
              <exclude>javax.xml.stream:stax-api</exclude>
              <exclude>javax.activation:activation</exclude>
              <exclude>commons-cli:commons-cli</exclude>
              <exclude>commons-io:commons-io</exclude>
              <exclude>commons-beanutils:commons-beanutils-core:jar:*</exclude>
              <exclude>commons-beanutils:commons-beanutils:jar:*</exclude>
              <exclude>io.netty:netty-tcnative:jar:*</exclude>
            </excludes>
          </artifactSet>
          <relocations>
            <relocation>
              <pattern>org.apache.drill.exec.</pattern>
              <shadedPattern>oadd.org.apache.drill.exec.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.drill.common.</pattern>
              <shadedPattern>oadd.org.apache.drill.common.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>antlr.</pattern>
              <shadedPattern>oadd.antlr.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>antlr.</pattern>
              <shadedPattern>oadd.antlr.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>io.</pattern>
              <shadedPattern>oadd.io.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>javacc.</pattern>
              <shadedPattern>oadd.javacc.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>java_cup.</pattern>
              <shadedPattern>oadd.java_cup.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>javassist.</pattern>
              <shadedPattern>oadd.javassist.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>jline.</pattern>
              <shadedPattern>oadd.jline.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>license.</pattern>
              <shadedPattern>oadd.license.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>net.</pattern>
              <shadedPattern>oadd.net.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>parquet.</pattern>
              <shadedPattern>oadd.parquet.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>test.</pattern>
              <shadedPattern>oadd.test.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>trax.</pattern>
              <shadedPattern>oadd.trax.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.antlr.</pattern>
              <shadedPattern>oadd.org.antlr.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.codehaus.</pattern>
              <shadedPattern>oadd.org.codehaus.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.eigenbase.</pattern>
              <shadedPattern>oadd.org.eigenbase.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.hamcrest.</pattern>
              <shadedPattern>oadd.org.hamcrest.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.jboss.</pattern>
              <shadedPattern>oadd.org.jboss.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.joda.</pattern>
              <shadedPattern>oadd.org.joda.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.json.</pattern>
              <shadedPattern>oadd.org.json.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.mockito.</pattern>
              <shadedPattern>oadd.org.mockito.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.msgpack.</pattern>
              <shadedPattern>oadd.org.msgpack.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.objectweb.</pattern>
              <shadedPattern>oadd.org.objectweb.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.objensis.</pattern>
              <shadedPattern>oadd.org.objensis.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.pentaho.</pattern>
              <shadedPattern>oadd.org.pentaho.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.reflections.</pattern>
              <shadedPattern>oadd.org.reflections.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.tukaani.</pattern>
              <shadedPattern>oadd.org.tukaani.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.xerial.</pattern>
              <shadedPattern>oadd.org.xerial.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.beust.</pattern>
              <shadedPattern>oadd.com.beust.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.carrotsearch.</pattern>
              <shadedPattern>oadd.com.carrotsearch.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.codahale.</pattern>
              <shadedPattern>oadd.com.codahale.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.dyuproject.</pattern>
              <shadedPattern>oadd.com.dyuproject.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.fasterxml.</pattern>
              <shadedPattern>oadd.com.fasterxml.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.google.</pattern>
              <shadedPattern>oadd.com.google.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.thoughtworks.</pattern>
              <shadedPattern>oadd.com.thoughtworks.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.typesafe.</pattern>
              <shadedPattern>oadd.com.typesafe.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.univocity.</pattern>
              <shadedPattern>oadd.com.univocity.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.avro.</pattern>
              <shadedPattern>oadd.org.apache.avro.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.bcel.</pattern>
              <shadedPattern>oadd.org.apache.bcel.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.calcite.</pattern>
              <shadedPattern>oadd.org.apache.calcite.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.commons.</pattern>
              <shadedPattern>oadd.org.apache.commons.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.curator.</pattern>
              <shadedPattern>oadd.org.apache.curator.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.html.</pattern>
              <shadedPattern>oadd.org.apache.html.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.jute.</pattern>
              <shadedPattern>oadd.org.apache.jute.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.log4j.</pattern>
              <shadedPattern>oadd.org.apache.log4j.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.regexp.</pattern>
              <shadedPattern>oadd.org.apache.regexp.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.velocity.</pattern>
              <shadedPattern>oadd.org.apache.velocity.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.wml.</pattern>
              <shadedPattern>oadd.org.apache.wml.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.xalan.</pattern>
              <shadedPattern>oadd.org.apache.xalan.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.xerces.</pattern>
              <shadedPattern>oadd.org.apache.xerces.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.xml.</pattern>
              <shadedPattern>oadd.org.apache.xml.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.xmlcommons.</pattern>
              <shadedPattern>oadd.org.apache.xmlcommons.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.xpath.</pattern>
              <shadedPattern>oadd.org.apache.xpath.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.zookeeper.</pattern>
              <shadedPattern>oadd.org.apache.zookeeper.</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.hadoop.</pattern>
              <shadedPattern>oadd.org.apache.hadoop.</shadedPattern>
            </relocation>
          </relocations>
          <transformers>
            <transformer>
              <resource>drill-module.conf</resource>
            </transformer>
          </transformers>
          <filters>
            <filter>
              <artifact>*:*</artifact>
              <excludes>
                <exclude>**/logback.xml</exclude>
                <exclude>**/LICENSE.txt</exclude>
                <exclude>**/*.java</exclude>
                <exclude>META-INF/ASL2.0</exclude>
                <exclude>META-INF/NOTICE.txt</exclude>
                <exclude>META-INF/drill-module-scan/**</exclude>
                <exclude>META-INF/jboss-beans.xml</exclude>
                <exclude>META-INF/license/**</exclude>
                <exclude>META-INF/maven/**</exclude>
                <exclude>META-INF/native/**</exclude>
                <exclude>META-INF/services/com.fasterxml.*</exclude>
                <exclude>META-INF/services/javax.ws.*</exclude>
                <exclude>META-INF/**/*.properties</exclude>
                <exclude>**/org.codehaus.commons.compiler.properties</exclude>
                <exclude>**/*.SF</exclude>
                <exclude>**/*.RSA</exclude>
                <exclude>**/*.DSA</exclude>
                <exclude>javax/*</exclude>
                <exclude>javax/activation/**</exclude>
                <exclude>javax/annotation-api/**</exclude>
                <exclude>javax/inject/**</exclude>
                <exclude>javax/servlet-api/**</exclude>
                <exclude>javax/json/**</exclude>
                <exclude>javax/ws/**</exclude>
                <exclude>rest/**</exclude>
                <exclude>*.tokens</exclude>
                <exclude>codegen/**</exclude>
                <exclude>bootstrap-storage-plugins.json</exclude>
                <exclude>org/apache/parquet</exclude>
                <exclude>com/google/common/math</exclude>
                <exclude>com/google/common/net</exclude>
                <exclude>com/google/common/primitives</exclude>
                <exclude>com/google/common/reflect</exclude>
                <exclude>com/google/common/util</exclude>
                <exclude>com/google/common/cache</exclude>
                <exclude>com/google/common/collect/Tree*</exclude>
                <exclude>com/google/common/collect/Standard*</exclude>
                <exclude>org/apache/drill/exec/expr/annotations/**</exclude>
                <exclude>org/apache/drill/exec/expr/fn/**</exclude>
                <exclude>org/apache/drill/exec/proto/beans/**</exclude>
                <exclude>org/apache/drill/exec/compile/**</exclude>
                <exclude>org/apache/drill/exec/planner/**</exclude>
                <exclude>org/apache/drill/exec/physical/**</exclude>
                <exclude>org/apache/drill/exec/store/**</exclude>
                <exclude>org/apache/drill/exec/server/rest/**</exclude>
                <exclude>org/apache/drill/exec/rpc/data/**</exclude>
                <exclude>org/apache/drill/exec/rpc/control/**</exclude>
                <exclude>org/apache/drill/exec/work/**</exclude>
                <exclude>org/apache/hadoop/crypto/**</exclude>
                <exclude>org/apache/hadoop/ha/**</exclude>
                <exclude>org/apache/hadoop/http/**</exclude>
                <exclude>org/apache/hadoop/ipc/**</exclude>
                <exclude>org/apache/hadoop/jmx/**</exclude>
                <exclude>org/apache/hadoop/log/**</exclude>
                <exclude>org/apache/hadoop/metrics/**</exclude>
                <exclude>org/apache/hadoop/net/**</exclude>
                <exclude>org/apache/hadoop/record/**</exclude>
                <exclude>org/apache/hadoop/service/**</exclude>
                <exclude>org/apache/hadoop/tracing/**</exclude>
                <exclude>org/apache/hadoop/tools/**</exclude>
                <exclude>org/apache/hadoop/yarn/**</exclude>
                <exclude>org/apache/commons/pool2/**</exclude>
                <exclude>org/apache/http/**</exclude>
                <exclude>org/apache/directory/**</exclude>
                <exclude>com/jcraft/**</exclude>
                <exclude>**/mapr/**</exclude>
                <exclude>org/yaml/**</exclude>
                <exclude>hello/**</exclude>
                <exclude>webapps/**</exclude>
              </excludes>
            </filter>
          </filters>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <executions>
          <execution>
            <id>enforce-jdbc-jar-compactness</id>
            <phase>verify</phase>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <requireFilesSize>
                  <message>The file drill-jdbc-all-${project.version}.jar is outside the expected size range.

                  This is likely due to you adding new dependencies to a java-exec and not updating the excludes in this module. This is important as it minimizes the size of the dependency of Drill application users.</message>
                  <maxsize>30000000</maxsize>
                  <minsize>15000000</minsize>
                  <files>
                    <file>${project.build.directory}/drill-jdbc-all-${project.version}.jar</file>
                  </files>
                </requireFilesSize>
              </rules>
              <fail>true</fail>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>mapr</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-enforcer-plugin</artifactId>
            <executions>
              <execution>
                <id>enforce-jdbc-jar-compactness</id>
                <phase>verify</phase>
                <goals>
                  <goal>enforce</goal>
                </goals>
                <configuration>
                  <rules>
                    <requireFilesSize>
                      <message>The file drill-jdbc-all-${project.version}.jar is outside the expected size range.

                          This is likely due to you adding new dependencies to a java-exec and not updating the excludes in this module. This is important as it minimizes the size of the dependency of Drill application users.</message>
                      <maxsize>29000000</maxsize>
                      <minsize>15000000</minsize>
                      <files>
                        <file>${project.build.directory}/drill-jdbc-all-${project.version}.jar</file>
                      </files>
                    </requireFilesSize>
                  </rules>
                  <fail>true</fail>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-shade-plugin</artifactId>
            <version>2.4.1</version>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>shade</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <shadedArtifactAttached>false</shadedArtifactAttached>
              <createDependencyReducedPom>true</createDependencyReducedPom>
              <minimizeJar>false</minimizeJar>
              <artifactSet>
                <includes>
                  <include>*:*</include>
                </includes>
                <excludes>
                  <exclude>org.slf4j:jcl-over-slf4j</exclude>
                  <exclude>com.dyuproject.protostuff:*</exclude>
                  <exclude>org.apache.calcite:calcite-core</exclude>
                  <exclude>org.apache.calcite:calcite-linq4j</exclude>
                  <exclude>org.pentaho:*</exclude>
                  <exclude>org.msgpack:*</exclude>
                  <exclude>xerces:*</exclude>
                  <exclude>xalan:*</exclude>
                  <exclude>org.apache.avro:*</exclude>
                  <exclude>org.mongodb:*</exclude>
                  <exclude>com.googlecode.json-simple:*</exclude>
                  <exclude>dom4j:*</exclude>
                  <exclude>org.hibernate:*</exclude>
                  <exclude>antlr:*</exclude>
                  <exclude>org.ow2.asm:*</exclude>
                  <exclude>com.univocity:*</exclude>
                  <exclude>net.sf.jpam:*</exclude>
                  <exclude>com.twitter:*</exclude>
                  <exclude>org.apache.parquet:*</exclude>
                  <exclude>javax.inject:*</exclude>
                  <exclude>com.beust:*</exclude>
                  <exclude>jline:*</exclude>
                  <exclude>io.netty:netty:jar:3.7.0.Final</exclude>
                  <exclude>org.xerial.snappy:*</exclude>
                  <exclude>org.apache.avro:*</exclude>
                  <exclude>org.tukaani:*</exclude>
                  <exclude>org.apache.velocity:*</exclude>
                  <exclude>net.hydromatic:linq4j</exclude>
                  <exclude>org.codehaus.janino:*</exclude>
                  <exclude>org.mortbay.jetty:*</exclude>
                  <exclude>org.slf4j:jul-to-slf4j</exclude>
                  <exclude>org.slf4j:log4j-over-slf4j</exclude>
                  <exclude>org.hamcrest:hamcrest-core</exclude>
                  <exclude>org.mockito:mockito-core</exclude>
                  <exclude>org.objenesis:objenesis</exclude>
                  <exclude>org.eclipse.jetty:*</exclude>
                  <exclude>org.apache.hadoop:*</exclude>
                  <exclude>javax.xml.bind:jaxb-api</exclude>
                  <exclude>javax.xml.stream:stax-api</exclude>
                  <exclude>javax.activation:activation</exclude>
                  <exclude>commons-cli:commons-cli</exclude>
                  <exclude>commons-io:commons-io</exclude>
                  <exclude>commons-beanutils:commons-beanutils-core:jar:*</exclude>
                  <exclude>commons-beanutils:commons-beanutils:jar:*</exclude>
                </excludes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>org.apache.drill.exec.</pattern>
                  <shadedPattern>oadd.org.apache.drill.exec.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.drill.common.</pattern>
                  <shadedPattern>oadd.org.apache.drill.common.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>antlr.</pattern>
                  <shadedPattern>oadd.antlr.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>antlr.</pattern>
                  <shadedPattern>oadd.antlr.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>io.</pattern>
                  <shadedPattern>oadd.io.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>javacc.</pattern>
                  <shadedPattern>oadd.javacc.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>java_cup.</pattern>
                  <shadedPattern>oadd.java_cup.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>javassist.</pattern>
                  <shadedPattern>oadd.javassist.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>jline.</pattern>
                  <shadedPattern>oadd.jline.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>license.</pattern>
                  <shadedPattern>oadd.license.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>net.</pattern>
                  <shadedPattern>oadd.net.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>parquet.</pattern>
                  <shadedPattern>oadd.parquet.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>test.</pattern>
                  <shadedPattern>oadd.test.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>trax.</pattern>
                  <shadedPattern>oadd.trax.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.antlr.</pattern>
                  <shadedPattern>oadd.org.antlr.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.codehaus.</pattern>
                  <shadedPattern>oadd.org.codehaus.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.eigenbase.</pattern>
                  <shadedPattern>oadd.org.eigenbase.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.hamcrest.</pattern>
                  <shadedPattern>oadd.org.hamcrest.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.jboss.</pattern>
                  <shadedPattern>oadd.org.jboss.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.joda.</pattern>
                  <shadedPattern>oadd.org.joda.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.json.</pattern>
                  <shadedPattern>oadd.org.json.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.mockito.</pattern>
                  <shadedPattern>oadd.org.mockito.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.msgpack.</pattern>
                  <shadedPattern>oadd.org.msgpack.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.objectweb.</pattern>
                  <shadedPattern>oadd.org.objectweb.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.objensis.</pattern>
                  <shadedPattern>oadd.org.objensis.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.pentaho.</pattern>
                  <shadedPattern>oadd.org.pentaho.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.reflections.</pattern>
                  <shadedPattern>oadd.org.reflections.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.tukaani.</pattern>
                  <shadedPattern>oadd.org.tukaani.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.xerial.</pattern>
                  <shadedPattern>oadd.org.xerial.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.beust.</pattern>
                  <shadedPattern>oadd.com.beust.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.carrotsearch.</pattern>
                  <shadedPattern>oadd.com.carrotsearch.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.codahale.</pattern>
                  <shadedPattern>oadd.com.codahale.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.dyuproject.</pattern>
                  <shadedPattern>oadd.com.dyuproject.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.fasterxml.</pattern>
                  <shadedPattern>oadd.com.fasterxml.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.google.</pattern>
                  <shadedPattern>oadd.com.google.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.thoughtworks.</pattern>
                  <shadedPattern>oadd.com.thoughtworks.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.typesafe.</pattern>
                  <shadedPattern>oadd.com.typesafe.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.univocity.</pattern>
                  <shadedPattern>oadd.com.univocity.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.avro.</pattern>
                  <shadedPattern>oadd.org.apache.avro.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.bcel.</pattern>
                  <shadedPattern>oadd.org.apache.bcel.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.calcite.</pattern>
                  <shadedPattern>oadd.org.apache.calcite.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons.</pattern>
                  <shadedPattern>oadd.org.apache.commons.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.curator.</pattern>
                  <shadedPattern>oadd.org.apache.curator.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.html.</pattern>
                  <shadedPattern>oadd.org.apache.html.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.jute.</pattern>
                  <shadedPattern>oadd.org.apache.jute.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.log4j.</pattern>
                  <shadedPattern>oadd.org.apache.log4j.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.regexp.</pattern>
                  <shadedPattern>oadd.org.apache.regexp.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.velocity.</pattern>
                  <shadedPattern>oadd.org.apache.velocity.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.wml.</pattern>
                  <shadedPattern>oadd.org.apache.wml.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.xalan.</pattern>
                  <shadedPattern>oadd.org.apache.xalan.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.xerces.</pattern>
                  <shadedPattern>oadd.org.apache.xerces.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.xml.</pattern>
                  <shadedPattern>oadd.org.apache.xml.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.xmlcommons.</pattern>
                  <shadedPattern>oadd.org.apache.xmlcommons.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.xpath.</pattern>
                  <shadedPattern>oadd.org.apache.xpath.</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.zookeeper.</pattern>
                  <shadedPattern>oadd.org.apache.zookeeper.</shadedPattern>
                </relocation>
              </relocations>
              <transformers>
                <transformer>
                  <resource>drill-module.conf</resource>
                </transformer>
              </transformers>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>**/logback.xml</exclude>
                    <exclude>**/LICENSE.txt</exclude>
                    <exclude>**/*.java</exclude>
                    <exclude>META-INF/ASL2.0</exclude>
                    <exclude>META-INF/NOTICE.txt</exclude>
                    <exclude>META-INF/drill-module-scan/**</exclude>
                    <exclude>META-INF/jboss-beans.xml</exclude>
                    <exclude>META-INF/license/**</exclude>
                    <exclude>META-INF/maven/**</exclude>
                    <exclude>META-INF/native/**</exclude>
                    <exclude>META-INF/services/com.fasterxml.*</exclude>
                    <exclude>META-INF/services/javax.ws.*</exclude>
                    <exclude>META-INF/**/*.properties</exclude>
                    <exclude>**/org.codehaus.commons.compiler.properties</exclude>
                    <exclude>**/*.SF</exclude>
                    <exclude>**/*.RSA</exclude>
                    <exclude>**/*.DSA</exclude>
                    <exclude>javax/*</exclude>
                    <exclude>javax/activation/**</exclude>
                    <exclude>javax/annotation-api/**</exclude>
                    <exclude>javax/inject/**</exclude>
                    <exclude>javax/servlet-api/**</exclude>
                    <exclude>javax/json/**</exclude>
                    <exclude>javax/ws/**</exclude>
                    <exclude>rest/**</exclude>
                    <exclude>*.tokens</exclude>
                    <exclude>codegen/**</exclude>
                    <exclude>bootstrap-storage-plugins.json</exclude>
                    <exclude>org/apache/parquet</exclude>
                    <exclude>com/google/common/math</exclude>
                    <exclude>com/google/common/net</exclude>
                    <exclude>com/google/common/primitives</exclude>
                    <exclude>com/google/common/reflect</exclude>
                    <exclude>com/google/common/util</exclude>
                    <exclude>com/google/common/cache</exclude>
                    <exclude>com/google/common/collect/Tree*</exclude>
                    <exclude>com/google/common/collect/Standard*</exclude>
                    <exclude>org/apache/drill/exec/expr/annotations/**</exclude>
                    <exclude>org/apache/drill/exec/expr/fn/**</exclude>
                    <exclude>org/apache/drill/exec/proto/beans/**</exclude>
                    <exclude>org/apache/drill/exec/compile/**</exclude>
                    <exclude>org/apache/drill/exec/planner/**</exclude>
                    <exclude>org/apache/drill/exec/physical/**</exclude>
                    <exclude>org/apache/drill/exec/store/**</exclude>
                    <exclude>org/apache/drill/exec/server/rest/**</exclude>
                    <exclude>org/apache/drill/exec/rpc/data/**</exclude>
                    <exclude>org/apache/drill/exec/rpc/control/**</exclude>
                    <exclude>org/apache/drill/exec/work/**</exclude>
                    <exclude>org/apache/hadoop/**</exclude>
                    <exclude>org/apache/commons/pool2/**</exclude>
                    <exclude>org/apache/http/**</exclude>
                    <exclude>org/apache/directory/**</exclude>
                    <exclude>com/jcraft/**</exclude>
                    <exclude>**/mapr/**</exclude>
                    <exclude>org/yaml/**</exclude>
                    <exclude>hello/**</exclude>
                    <exclude>webapps/**</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties />
    </profile>
    <profile>
      <id>apache-release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.10.3</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>aggregate-jar</goal>
                  <goal>jar</goal>
                </goals>
                <inherited>false</inherited>
                <configuration>
                  <includeDependencySources>true</includeDependencySources>
                  <dependencySourceIncludes>
                    <dependencySourceInclude>org.apache.drill.exec:drill-jdbc</dependencySourceInclude>
                  </dependencySourceIncludes>
                  <excludePackageNames>org.apache.drill.jdbc.impl</excludePackageNames>
                  <windowtitle>Apache Drill JDBC Driver v. 1.12.0</windowtitle>
                  <header>Apache Drill JDBC Driver v. 1.12.0</header>
                  <footer>Apache Drill JDBC Driver v. 1.12.0</footer>
                  <doctitle>Apache Drill JDBC Driver version 1.12.0</doctitle>
                  <groups>
                    <group>
                      <title>Drill JDBC Driver</title>
                      <packages>org.apache.drill.jdbc</packages>
                    </group>
                    <group>
                      <title>Tracing Proxy JDBC Driver</title>
                      <packages>org.apache.drill.jdbc.proxy</packages>
                    </group>
                  </groups>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <properties>
        <os.detected.release.version>7</os.detected.release.version>
        <os.detected.release.like.rhel>true</os.detected.release.like.rhel>
        <os.detected.release>centos</os.detected.release>
        <os.detected.release.like.centos>true</os.detected.release.like.centos>
        <os.detected.name>linux</os.detected.name>
        <os.detected.classifier>linux-x86_64</os.detected.classifier>
        <os.detected.arch>x86_64</os.detected.arch>
        <os.detected.release.like.fedora>true</os.detected.release.like.fedora>
      </properties>
    </profile>
  </profiles>
  <pluginRepositories>
    <pluginRepository>
      <id>onejar-maven-plugin.googlecode.com</id>
      <url>http://onejar-maven-plugin.googlecode.com/svn/mavenrepo</url>
    </pluginRepository>
    <pluginRepository>
      <snapshots />
      <id>scala-tools.org</id>
      <name>Scala-tools Maven2 Repository</name>
      <url>http://scala-tools.org/repo-releases</url>
    </pluginRepository>
  </pluginRepositories>
  <dependencies>
    <dependency>
      <groupId>org.apache.drill</groupId>
      <artifactId>drill-common</artifactId>
      <version>1.12.0</version>
      <classifier>tests</classifier>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.drill.exec</groupId>
      <artifactId>drill-java-exec</artifactId>
      <version>1.12.0</version>
      <classifier>tests</classifier>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>codemodel</artifactId>
          <groupId>com.sun.codemodel</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jetty-server</artifactId>
          <groupId>org.eclipse.jetty</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jetty-servlet</artifactId>
          <groupId>org.eclipse.jetty</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jersey-container-jetty-servlet</artifactId>
          <groupId>org.glassfish.jersey.containers</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jersey-media-multipart</artifactId>
          <groupId>org.glassfish.jersey.media</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jersey-media-json-jackson</artifactId>
          <groupId>org.glassfish.jersey.media</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jersey-mvc-freemarker</artifactId>
          <groupId>org.glassfish.jersey.ext</groupId>
        </exclusion>
        <exclusion>
          <artifactId>bcpkix-jdk15on</artifactId>
          <groupId>org.bouncycastle</groupId>
        </exclusion>
        <exclusion>
          <artifactId>freemarker</artifactId>
          <groupId>org.freemarker</groupId>
        </exclusion>
        <exclusion>
          <artifactId>parquet-column</artifactId>
          <groupId>org.apache.parquet</groupId>
        </exclusion>
        <exclusion>
          <artifactId>parquet-hadoop</artifactId>
          <groupId>org.apache.parquet</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jetty-util</artifactId>
          <groupId>org.mortbay.jetty</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-net</artifactId>
          <groupId>commons-net</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-validator</artifactId>
          <groupId>commons-validator</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hadoop-client</artifactId>
          <groupId>org.apache.hadoop</groupId>
        </exclusion>
        <exclusion>
          <artifactId>avro-mapred</artifactId>
          <groupId>org.apache.avro</groupId>
        </exclusion>
        <exclusion>
          <artifactId>httpdlog-parser</artifactId>
          <groupId>nl.basjes.parse.httpdlog</groupId>
        </exclusion>
        <exclusion>
          <artifactId>libpam4j</artifactId>
          <groupId>org.kohsuke</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jul-to-slf4j</artifactId>
      <version>1.7.6</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>log4j-over-slf4j</artifactId>
      <version>1.7.6</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>2.4</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.googlecode.jmockit</groupId>
      <artifactId>jmockit</artifactId>
      <version>1.3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>1.9.5</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <version>1.0.13</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>logback-core</artifactId>
          <groupId>ch.qos.logback</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>de.huxhorn.lilith</groupId>
      <artifactId>de.huxhorn.lilith.logback.appender.multiplex-classic</artifactId>
      <version>0.9.44</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>de.huxhorn.sulky.codec</artifactId>
          <groupId>de.huxhorn.sulky</groupId>
        </exclusion>
        <exclusion>
          <artifactId>de.huxhorn.lilith.logback.converter-classic</artifactId>
          <groupId>de.huxhorn.lilith</groupId>
        </exclusion>
        <exclusion>
          <artifactId>de.huxhorn.lilith.logback.appender.multiplex-core</artifactId>
          <groupId>de.huxhorn.lilith</groupId>
        </exclusion>
        <exclusion>
          <artifactId>de.huxhorn.lilith.data.logging.protobuf</artifactId>
          <groupId>de.huxhorn.lilith</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.xerial.snappy</groupId>
      <artifactId>snappy-java</artifactId>
      <version>1.1.2.6</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.kerby</groupId>
      <artifactId>kerb-client</artifactId>
      <version>1.0.0-RC2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>log4j</artifactId>
          <groupId>log4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>slf4j-log4j12</artifactId>
          <groupId>org.slf4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>kerby-config</artifactId>
          <groupId>org.apache.kerby</groupId>
        </exclusion>
        <exclusion>
          <artifactId>kerb-common</artifactId>
          <groupId>org.apache.kerby</groupId>
        </exclusion>
        <exclusion>
          <artifactId>kerb-util</artifactId>
          <groupId>org.apache.kerby</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.kerby</groupId>
      <artifactId>kerb-core</artifactId>
      <version>1.0.0-RC2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>kerby-asn1</artifactId>
          <groupId>org.apache.kerby</groupId>
        </exclusion>
        <exclusion>
          <artifactId>kerby-pkix</artifactId>
          <groupId>org.apache.kerby</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.kerby</groupId>
      <artifactId>kerb-simplekdc</artifactId>
      <version>1.0.0-RC2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>kerb-server</artifactId>
          <groupId>org.apache.kerby</groupId>
        </exclusion>
        <exclusion>
          <artifactId>kerb-admin</artifactId>
          <groupId>org.apache.kerby</groupId>
        </exclusion>
        <exclusion>
          <artifactId>kerby-config</artifactId>
          <groupId>org.apache.kerby</groupId>
        </exclusion>
        <exclusion>
          <artifactId>kerb-util</artifactId>
          <groupId>org.apache.kerby</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <properties>
    <package.namespace.prefix>oadd.</package.namespace.prefix>
  </properties>
</project>

