diff --git a/packaging/hoodie-presto-bundle/pom.xml b/packaging/hoodie-presto-bundle/pom.xml new file mode 100644 index 000000000..0fc3260aa --- /dev/null +++ b/packaging/hoodie-presto-bundle/pom.xml @@ -0,0 +1,189 @@ + + + + + + hoodie + com.uber.hoodie + 0.4.5-SNAPSHOT + ../../pom.xml + + 4.0.0 + + hoodie-presto-bundle + jar + + + + org.apache.hadoop + hadoop-common + + + org.apache.hadoop + hadoop-client + + + org.apache.hadoop + hadoop-hdfs + + + org.apache.hadoop + hadoop-auth + + + com.google.guava + guava + + + org.apache.thrift + libthrift + 0.9.2 + + + + joda-time + joda-time + + + + + commons-dbcp + commons-dbcp + + + + commons-io + commons-io + + + + + org.slf4j + slf4j-api + + + org.slf4j + slf4j-log4j12 + + + + com.beust + jcommander + + + + org.apache.httpcomponents + httpcore + + + + org.apache.httpcomponents + httpclient + + + + com.twitter + parquet-avro + + + + com.uber.hoodie + hoodie-hadoop-mr-bundle + ${project.version} + + + + + + + org.apache.rat + apache-rat-plugin + + + org.apache.maven.plugins + maven-shade-plugin + 2.4 + + + package + + shade + + + + + com.beust. + com.uber.hoodie.com.beust. + + + org.joda. + com.uber.hoodie.org.joda. + + + com.google. + com.uber.hoodie.com.google. + + + org.slf4j. + com.uber.hoodie.org.slf4j. + + + org.apache.commons. + com.uber.hoodie.org.apache.commons. + + + parquet.column + com.uber.hoodie.parquet.column + + + parquet.format. + com.uber.hoodie.parquet.format. + + + parquet.hadoop. + com.uber.hoodie.parquet.hadoop. + + + parquet.schema. + com.uber.hoodie.parquet.schema. + + + false + + + log4j:log4j + org.apache.hadoop:* + org.apache.hive:* + org.apache.derby:derby + + org.apache.thrift:* + + org.apache.httpcomponents:* + + + ${project.artifactId}-${project.version} + + + + + + + + + true + + diff --git a/packaging/hoodie-presto-bundle/src/main/java/com/uber/hoodie/presto/bundle/Main.java b/packaging/hoodie-presto-bundle/src/main/java/com/uber/hoodie/presto/bundle/Main.java new file mode 100644 index 000000000..aacbd4585 --- /dev/null +++ b/packaging/hoodie-presto-bundle/src/main/java/com/uber/hoodie/presto/bundle/Main.java @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2017 Uber Technologies, Inc. (hoodie-dev-group@uber.com) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + */ + +package com.uber.hoodie.presto.bundle; + +import com.uber.hoodie.common.util.ReflectionUtils; + +/** + * A simple main class to dump all classes loaded in current classpath + * + * This is a workaround for generating sources and javadoc jars for packaging modules. The maven plugins for generating + * javadoc and sources plugins do not generate corresponding jars if there are no source files. + * + * This class does not have anything to do with Hudi but is there to keep mvn javadocs/source plugin happy. + */ +public class Main { + + public static void main(String[] args) { + ReflectionUtils.getTopLevelClassesInClasspath(Main.class).forEach(System.out::println); + } +} diff --git a/pom.xml b/pom.xml index a0ec312c5..dfe9c0dd7 100644 --- a/pom.xml +++ b/pom.xml @@ -39,6 +39,7 @@ packaging/hoodie-hadoop-mr-bundle packaging/hoodie-hive-bundle packaging/hoodie-spark-bundle + packaging/hoodie-presto-bundle docker/hoodie/hadoop hoodie-integ-test