hive-jdbc
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-jdbc</artifactId> <version>4.0.1</version> </dependency>
<?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>hive</artifactId> <groupId>org.apache.hive</groupId> <version>4.0.1</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>hive-jdbc</artifactId> <name>Hive JDBC</name> <build> <sourceDirectory>${basedir}/src/java</sourceDirectory> <testSourceDirectory>${basedir}/src/test</testSourceDirectory> <resources> <resource> <directory>${basedir}/src/resources</directory> </resource> </resources> </build> <profiles> <profile> <id>dist</id> <properties> <packaging.minimizeJar>false</packaging.minimizeJar> </properties> </profile> <profile> <id>dev-fast-build</id> <build> <plugins> <plugin> <artifactId>maven-shade-plugin</artifactId> <version>3.5.0</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <minimizeJar>false</minimizeJar> <shadedArtifactAttached>true</shadedArtifactAttached> <shadedClassifierName>standalone</shadedClassifierName> <filters> <filter> <artifact>org.apache.hive.shims:hive-shims-common</artifact> <includes> <include>**</include> </includes> </filter> <filter> <artifact>org.apache.hive.shims:hive-shims-0.23</artifact> <includes> <include>**</include> </includes> </filter> <filter> <artifact>org.apache.parquet:parquet-hadoop-bundle</artifact> <excludes> <exclude>shaded/parquet/org/codehaus/jackson/**</exclude> </excludes> </filter> <filter> <artifact>org.apache.hadoop:hadoop-common</artifact> <includes> <include>org/apache/hadoop/security/*</include> <include>org/apache/hadoop/conf/*</include> <include>org/apache/hadoop/fs/*</include> <include>org/apache/hadoop/fs/impl/*</include> <include>org/apache/hadoop/fs/statistics/*</include> <include>org/apache/hadoop/metrics2/**</include> <include>org/apache/hadoop/security/token/**</include> <include>org/apache/hadoop/util/*</include> <include>org/apache/hadoop/net/*</include> <include>org/apache/hadoop/io/*</include> <include>org/apache/hadoop/HadoopIllegalArgumentException.class</include> </includes> </filter> <filter> <artifact>org.apache.hadoop:hadoop-auth</artifact> <includes> <include>org/apache/hadoop/util/PlatformName.class</include> <include>org/apache/hadoop/security/authentication/util/*</include> </includes> </filter> <filter> <artifact>org.apache.hadoop:hadoop-yarn-registry</artifact> <includes> <include>org/apache/hadoop/registry/client/binding/*</include> <include>org/apache/hadoop/registry/client/types/*</include> </includes> </filter> <filter> <artifact>org.apache.hadoop:hadoop-yarn-api</artifact> <includes> <include>org/apache/hadoop/yarn/api/records/ApplicationId.class</include> </includes> </filter> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> <exclude>core-default.xml</exclude> <exclude>webapps/</exclude> <exclude>hive-webapps/</exclude> <exclude>hbase-webapps/</exclude> <exclude>static/</exclude> <exclude>META-INF/versions/*/module-info.class</exclude> </excludes> </filter> </filters> <artifactSet> <excludes> <exclude>antlr:*</exclude> <exclude>aopalliance:*</exclude> <exclude>asm:*</exclude> <exclude>ch.qos.reload4j:*</exclude> <exclude>com.cedarsoftware:*</exclude> <exclude>com.fasterxml.jackson.*:*</exclude> <exclude>com.google.code.gson:*</exclude> <exclude>com.google.re2j:*</exclude> <exclude>com.google.inject:*</exclude> <exclude>com.google.inject.extensions:*</exclude> <exclude>com.jamesmurty.utils:*</exclude> <exclude>com.jcraft:*</exclude> <exclude>com.jolbox:*</exclude> <exclude>commons-beanutils:*</exclude> <exclude>commons-cli:*</exclude> <exclude>commons-dbcp:*</exclude> <exclude>commons-digester:*</exclude> <exclude>commons-el:*</exclude> <exclude>commons-httpclient:*</exclude> <exclude>commons-io:*</exclude> <exclude>commons-net:*</exclude> <exclude>commons-pool:*</exclude> <exclude>com.google.code.findbugs:*</exclude> <exclude>com.google.protobuf:*</exclude> <exclude>com.github.pjfanning:*</exclude> <exclude>com.microsoft.sqlserver:mssql-jdbc</exclude> <exclude>com.nimbusds:*</exclude> <exclude>com.squareup.okhttp3:*</exclude> <exclude>com.squareup.okio:*</exclude> <exclude>com.sun.jersey:*</exclude> <exclude>com.sun.jersey.contribs:*</exclude> <exclude>com.sun.xml.bind:*</exclude> <exclude>com.tdunning:*</exclude> <exclude>com.thoughtworks.paranamer:*</exclude> <exclude>com.twitter:*</exclude> <exclude>com.zaxxer:*</exclude> <exclude>de.ruedigermoeller:*</exclude> <exclude>dnsjava:*</exclude> <exclude>io.airlift:*</exclude> <exclude>io.dropwizard.metrics:*</exclude> <exclude>io.netty:*</exclude> <exclude>javax.activation:*</exclude> <exclude>javax.inject:*</exclude> <exclude>javax.jdo:*</exclude> <exclude>javax.jms:*</exclude> <exclude>javax.mail:*</exclude> <exclude>javax.servlet:*</exclude> <exclude>javax.servlet.jsp:*</exclude> <exclude>javax.transaction:*</exclude> <exclude>javax.xml.bind:*</exclude> <exclude>jline:*</exclude> <exclude>joda-time:*</exclude> <exclude>junit:*</exclude> <exclude>log4j:*</exclude> <exclude>net.java.dev.jets3t:*</exclude> <exclude>net.sf.jpam:*</exclude> <exclude>net.sf.opencsv:*</exclude> <exclude>org.antlr:*</exclude> <exclude>org.apache.ant:*</exclude> <exclude>org.apache.avro:*</exclude> <exclude>org.apache.commons:commons-compress</exclude> <exclude>org.apache.commons:commons-math3</exclude> <exclude>org.apache.derby:*</exclude> <exclude>org.apache.directory.api:*</exclude> <exclude>org.apache.directory.server:*</exclude> <exclude>org.apache.geronimo.specs:*</exclude> <exclude>org.apache.hadoop:hadoop-hdfs</exclude> <exclude>org.apache.hadoop:hadoop-client</exclude> <exclude>org.apache.hadoop:hadoop-hdfs-client</exclude> <exclude>org.apache.hadoop:hadoop-mapreduce-client-jobclient</exclude> <exclude>org.apache.hadoop:hadoop-mapreduce-client-common</exclude> <exclude>org.apache.hadoop:hadoop-mapreduce-client-core</exclude> <exclude>org.apache.hadoop:hadoop-yarn-client</exclude> <exclude>org.apache.hadoop:hadoop-distcp</exclude> <exclude>org.apache.hadoop:hadoop-yarn-server-resourcemanager</exclude> <exclude>org.apache.hadoop:hadoop-yarn-common</exclude> <exclude>org.apache.hadoop:hadoop-yarn-server-common</exclude> <exclude>org.apache.hadoop:hadoop-yarn-server-applicationhistoryservice</exclude> <exclude>org.apache.hadoop:hadoop-yarn-server-web-proxy</exclude> <exclude>org.apache.hadoop:hadoop-annotations</exclude> <exclude>org.apache.hadoop.thirdparty:hadoop-shaded-protobuf_3_7</exclude> <exclude>org.apache.hbase*:*</exclude> <exclude>org.apache.hive:hive-vector-code-gen</exclude> <exclude>org.apache.htrace:*</exclude> <exclude>org.apache.kerby:*</exclude> <exclude>org.apache.logging.log4j:*</exclude> <exclude>org.apache.orc:*</exclude> <exclude>org.apache.velocity:*</exclude> <exclude>org.bouncycastle:*</exclude> <exclude>org.objenesis:objenesis</exclude> <exclude>org.codehaus.jackson:*</exclude> <exclude>org.codehaus.jettison:*</exclude> <exclude>org.datanucleus:*</exclude> <exclude>org.eclipse.jetty:*</exclude> <exclude>org.eclipse.jetty.aggregate:*</exclude> <exclude>org.ehcache:*</exclude> <exclude>org.fusesource.leveldbjni:*</exclude> <exclude>org.glassfish.jersey*:*</exclude> <exclude>org.hamcrest:*</exclude> <exclude>org.htrace:*</exclude> <exclude>org.jetbrains.kotlin:*</exclude> <exclude>org.ow2.asm:*</exclude> <exclude>org.slf4j:slf4j-log4j12</exclude> <exclude>org.slf4j:slf4j-reload4j</exclude> <exclude>org.tukaani:*</exclude> <exclude>org.xerial.snappy:*</exclude> <exclude>tomcat:*</exclude> <exclude>xerces:*</exclude> <exclude>xmlenc:*</exclude> <exclude>xml-apis:*</exclude> </excludes> </artifactSet> <relocations> <relocation> <pattern>org.apache.http</pattern> <shadedPattern>org.apache.hive.org.apache.http</shadedPattern> </relocation> <relocation> <pattern>org.apache.thrift</pattern> <shadedPattern>org.apache.hive.org.apache.thrift</shadedPattern> </relocation> <relocation> <pattern>com.google.common</pattern> <shadedPattern>org.apache.hive.com.google.common</shadedPattern> </relocation> <relocation> <pattern>org.apache.commons</pattern> <shadedPattern>org.apache.hive.org.apache.commons</shadedPattern> </relocation> <relocation> <pattern>com.facebook</pattern> <shadedPattern>org.apache.hive.com.facebook</shadedPattern> </relocation> <relocation> <pattern>org.apache.zookeeper</pattern> <shadedPattern>org.apache.hive.org.apache.zookeeper</shadedPattern> </relocation> <relocation> <pattern>org.apache.curator</pattern> <shadedPattern>org.apache.hive.org.apache.curator</shadedPattern> </relocation> <relocation> <pattern>com.beust</pattern> <shadedPattern>org.apache.hive.com.beust</shadedPattern> </relocation> <relocation> <pattern>com.lmax</pattern> <shadedPattern>org.apache.hive.com.lmax</shadedPattern> </relocation> <relocation> <pattern>org.jamon</pattern> <shadedPattern>org.apache.hive.org.jamon</shadedPattern> </relocation> <relocation> <pattern>javolution</pattern> <shadedPattern>org.apache.hive.javolution</shadedPattern> </relocation> <relocation> <pattern>com.ctc.wstx</pattern> <shadedPattern>org.apache.hive.com.ctc.wstx</shadedPattern> </relocation> <relocation> <pattern>org.codehaus.stax2</pattern> <shadedPattern>org.apache.hive.org.codehaus.stax2</shadedPattern> </relocation> </relocations> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> <dependencies> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>3.4.4</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>byte-buddy</artifactId> <groupId>net.bytebuddy</groupId> </exclusion> <exclusion> <artifactId>byte-buddy-agent</artifactId> <groupId>net.bytebuddy</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>hamcrest-core</artifactId> <groupId>org.hamcrest</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.6.2</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>apiguardian-api</artifactId> <groupId>org.apiguardian</groupId> </exclusion> <exclusion> <artifactId>junit-platform-engine</artifactId> <groupId>org.junit.platform</groupId> </exclusion> <exclusion> <artifactId>junit-jupiter-api</artifactId> <groupId>org.junit.jupiter</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> <version>5.6.3</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>apiguardian-api</artifactId> <groupId>org.apiguardian</groupId> </exclusion> <exclusion> <artifactId>junit-platform-engine</artifactId> <groupId>org.junit.platform</groupId> </exclusion> </exclusions> </dependency> </dependencies> <properties> <packaging.minimizeJar>false</packaging.minimizeJar> <hive.path.to.root>..</hive.path.to.root> </properties> </project>