-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5254d7d
Showing
3 changed files
with
431 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
target/ | ||
/var | ||
pom.xml.versionsBackup | ||
test-output/ | ||
/atlassian-ide-plugin.xml | ||
.idea | ||
.DS_Store | ||
.classpath | ||
.settings | ||
.project | ||
temp-testng-customsuite.xml | ||
test-output | ||
.externalToolBuilders | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,380 @@ | ||
<?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/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.facebook.presto.hive</groupId> | ||
<artifactId>hive-apache</artifactId> | ||
<version>0.1-SNAPSHOT</version> | ||
|
||
<name>hive-apache</name> | ||
<description>Shaded version of Apache Hive for Presto</description> | ||
<url>https://github.com/facebook/presto-hive-apache</url> | ||
|
||
<inceptionYear>2012</inceptionYear> | ||
|
||
<licenses> | ||
<license> | ||
<name>Apache License 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
|
||
<scm> | ||
<connection>scm:git:git://github.com/facebook/presto-hive-apache.git</connection> | ||
<url>https://github.com/facebook/presto-hive-apache</url> | ||
<tag>HEAD</tag> | ||
</scm> | ||
|
||
<distributionManagement> | ||
<repository> | ||
<id>libs-releases-local</id> | ||
<url>http://nexus.vip.facebook.com:8181/nexus/content/repositories/libs-releases-local</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>libs-snapshots-local</id> | ||
<url>http://nexus.vip.facebook.com:8181/nexus/content/repositories/libs-snapshots-local</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<shadeBase>com.facebook.presto.hive.shaded</shadeBase> | ||
<dep.slf4j.version>1.6.6</dep.slf4j.version> | ||
<dep.hive.version>0.11.0</dep.hive.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<!-- discard logging from hive --> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>jcl-over-slf4j</artifactId> | ||
<version>${dep.slf4j.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-nop</artifactId> | ||
<version>${dep.slf4j.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<version>${dep.slf4j.version}</version> | ||
</dependency> | ||
|
||
<!-- hive --> | ||
<dependency> | ||
<groupId>org.apache.hive</groupId> | ||
<artifactId>hive-metastore</artifactId> | ||
<version>${dep.hive.version}</version> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>org.apache.hive</groupId> | ||
<artifactId>hive-serde</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.datanucleus</groupId> | ||
<artifactId>datanucleus-connectionpool</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.datanucleus</groupId> | ||
<artifactId>datanucleus-core</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.datanucleus</groupId> | ||
<artifactId>datanucleus-enhancer</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.datanucleus</groupId> | ||
<artifactId>datanucleus-rdbms</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>javax.jdo</groupId> | ||
<artifactId>jdo2-api</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.apache.derby</groupId> | ||
<artifactId>derby</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>asm</groupId> | ||
<artifactId>asm</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.antlr</groupId> | ||
<artifactId>antlr</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.antlr</groupId> | ||
<artifactId>antlr-runtime</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.antlr</groupId> | ||
<artifactId>ST4</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>servlet-api</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-all</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.apache.httpcomponents</groupId> | ||
<artifactId>httpclient</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>commons-dbcp</groupId> | ||
<artifactId>commons-dbcp</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>commons-pool</groupId> | ||
<artifactId>commons-pool</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.hive</groupId> | ||
<artifactId>hive-exec</artifactId> | ||
<version>${dep.hive.version}</version> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>org.apache.hive</groupId> | ||
<artifactId>hive-contrib</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.apache.hive</groupId> | ||
<artifactId>hive-hbase-handler</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>com.googlecode.javaewah</groupId> | ||
<artifactId>JavaEWAH</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.apache.derby</groupId> | ||
<artifactId>derby</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.apache.thrift</groupId> | ||
<artifactId>libthrift</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>com.google.protobuf</groupId> | ||
<artifactId>protobuf-java</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>javolution</groupId> | ||
<artifactId>javolution</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.iq80.snappy</groupId> | ||
<artifactId>snappy</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>jline</groupId> | ||
<artifactId>jline</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>commons-configuration</groupId> | ||
<artifactId>commons-configuration</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>commons-collections</groupId> | ||
<artifactId>commons-collections</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>commons-logging</groupId> | ||
<artifactId>commons-logging</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>commons-logging</groupId> | ||
<artifactId>commons-logging-api</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.json</groupId> | ||
<artifactId>json</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>log4j</groupId> | ||
<artifactId>log4j</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
|
||
<!-- hive needs these but doesn't depend on them --> | ||
<dependency> | ||
<groupId>commons-codec</groupId> | ||
<artifactId>commons-codec</artifactId> | ||
<version>1.3</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.thrift</groupId> | ||
<artifactId>libfb303</artifactId> | ||
<version>0.7.0</version> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>org.apache.thrift</groupId> | ||
<artifactId>libthrift</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
|
||
<!-- hadoop compilation dependency for CodecPool --> | ||
<dependency> | ||
<groupId>org.apache.hadoop</groupId> | ||
<artifactId>hadoop-core</artifactId> | ||
<version>0.20.1</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<!-- depend on newer version to avoid broken pom in older version --> | ||
<dependency> | ||
<groupId>org.datanucleus</groupId> | ||
<artifactId>datanucleus-enhancer</artifactId> | ||
<version>3.1.1</version> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.5.1</version> | ||
<configuration> | ||
<source>1.7</source> | ||
<target>1.7</target> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>2.12.4</version> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>2.2.1</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
<configuration> | ||
<attach>false</attach> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-shade-plugin</artifactId> | ||
<version>1.6</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>shade</goal> | ||
</goals> | ||
<configuration> | ||
<createSourcesJar>true</createSourcesJar> | ||
<keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope> | ||
<relocations> | ||
<relocation> | ||
<pattern>org.apache.commons</pattern> | ||
<shadedPattern>${shadeBase}.org.apache.commons</shadedPattern> | ||
</relocation> | ||
<relocation> | ||
<pattern>org.apache.thrift</pattern> | ||
<shadedPattern>${shadeBase}.org.apache.thrift</shadedPattern> | ||
</relocation> | ||
<relocation> | ||
<pattern>com.facebook.fb303</pattern> | ||
<shadedPattern>${shadeBase}.com.facebook.fb303</shadedPattern> | ||
</relocation> | ||
<relocation> | ||
<pattern>com.google.common</pattern> | ||
<shadedPattern>${shadeBase}.com.google.common</shadedPattern> | ||
</relocation> | ||
<relocation> | ||
<pattern>com.google.protobuf</pattern> | ||
<shadedPattern>${shadeBase}.com.google.protobuf</shadedPattern> | ||
</relocation> | ||
<relocation> | ||
<pattern>org.iq80.snappy</pattern> | ||
<shadedPattern>${shadeBase}.org.iq80.snappy</shadedPattern> | ||
</relocation> | ||
<relocation> | ||
<pattern>org.json</pattern> | ||
<shadedPattern>${shadeBase}.org.json</shadedPattern> | ||
</relocation> | ||
<relocation> | ||
<pattern>org.slf4j</pattern> | ||
<shadedPattern>${shadeBase}.org.slf4j</shadedPattern> | ||
</relocation> | ||
</relocations> | ||
<filters> | ||
<filter> | ||
<artifact>*:*</artifact> | ||
<excludes> | ||
<exclude>META-INF/**</exclude> | ||
</excludes> | ||
</filter> | ||
<filter> | ||
<artifact>org.apache.hive:hive-metastore</artifact> | ||
<excludes> | ||
<exclude>package.jdo</exclude> | ||
</excludes> | ||
</filter> | ||
<filter> | ||
<artifact>org.apache.hive:hive-exec</artifact> | ||
<excludes> | ||
<exclude>org/apache/hadoop/hive/ql/io/CodecPool.class</exclude> | ||
<exclude>org/apache/commons/lang/**</exclude> | ||
<exclude>javaewah/**</exclude> | ||
<exclude>javax/realtime/**</exclude> | ||
<exclude>javolution/**</exclude> | ||
<exclude>org/apache/avro/**</exclude> | ||
<exclude>*.properties</exclude> | ||
</excludes> | ||
</filter> | ||
</filters> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>2.3.2</version> | ||
<configuration> | ||
<mavenExecutorId>forked-path</mavenExecutorId> | ||
<pushChanges>false</pushChanges> | ||
<localCheckout>true</localCheckout> | ||
<useReleaseProfile>false</useReleaseProfile> | ||
<preparationGoals>clean install</preparationGoals> | ||
<autoVersionSubmodules>true</autoVersionSubmodules> | ||
<tagNameFormat>@{project.version}</tagNameFormat> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
Oops, something went wrong.