| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You 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. |
| --> |
| <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"> |
| <parent> |
| <artifactId>hudi</artifactId> |
| <groupId>org.apache.hudi</groupId> |
| <version>0.13.0</version> |
| <relativePath>../../pom.xml</relativePath> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>hudi-kafka-connect-bundle</artifactId> |
| <packaging>jar</packaging> |
| |
| <properties> |
| <checkstyle.skip>true</checkstyle.skip> |
| <main.basedir>${project.parent.basedir}</main.basedir> |
| <skipTests>true</skipTests> |
| <kafka.connect.bundle.shade.prefix>org.apache.hudi.</kafka.connect.bundle.shade.prefix> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>${maven-shade-plugin.version}</version> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createSourcesJar>${shadeSources}</createSourcesJar> |
| <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml |
| </dependencyReducedPomLocation> |
| <transformers> |
| <transformer |
| implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer"> |
| </transformer> |
| <transformer |
| implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"> |
| <addHeader>true</addHeader> |
| </transformer> |
| <transformer |
| implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/LICENSE</resource> |
| <file>target/classes/META-INF/LICENSE</file> |
| </transformer> |
| <transformer |
| implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> |
| </transformers> |
| <artifactSet> |
| <includes combine.children="append"> |
| <include>org.apache.hudi:hudi-common</include> |
| <include>org.apache.hudi:hudi-client-common</include> |
| <include>org.apache.hudi:hudi-java-client</include> |
| <include>org.apache.hudi:hudi-kafka-connect</include> |
| <include>org.apache.hudi:hudi-utilities_${scala.binary.version}</include> |
| <include>org.apache.hudi:hudi-hive-sync</include> |
| <include>org.apache.hudi:hudi-sync-common</include> |
| <include>org.apache.hudi:hudi-hadoop-mr</include> |
| <include>org.apache.hudi:hudi-timeline-service</include> |
| <include>org.apache.hudi:hudi-aws</include> |
| |
| <!-- NOTE: This is temp (SchemaProvide dep) until PR3162 lands --> |
| <include>org.apache.hudi:hudi-flink</include> |
| <include>org.apache.hudi:flink-core</include> |
| <include>org.apache.hudi:hudi-flink-client</include> |
| <include>org.apache.flink:flink-core</include> |
| <include>${flink.hadoop.compatibility.artifactId}</include> |
| |
| <!-- Kryo --> |
| <include>com.esotericsoftware:kryo-shaded</include> |
| <include>com.esotericsoftware:minlog</include> |
| <include>org.objenesis:objenesis</include> |
| |
| <include>com.lmax:disruptor</include> |
| <include>com.github.davidmoten:guava-mini</include> |
| <include>com.github.davidmoten:hilbert-curve</include> |
| <include>com.yammer.metrics:metrics-core</include> |
| <include>com.beust:jcommander</include> |
| <include>io.javalin:javalin</include> |
| <include>org.jetbrains.kotlin:*</include> |
| <include>org.eclipse.jetty:*</include> |
| <include>org.eclipse.jetty.websocket:*</include> |
| <include>org.rocksdb:rocksdbjni</include> |
| |
| <include>io.dropwizard.metrics:metrics-core</include> |
| <include>io.dropwizard.metrics:metrics-graphite</include> |
| <include>io.dropwizard.metrics:metrics-jmx</include> |
| <include>io.prometheus:simpleclient</include> |
| <include>io.prometheus:simpleclient_httpserver</include> |
| <include>io.prometheus:simpleclient_dropwizard</include> |
| <include>io.prometheus:simpleclient_pushgateway</include> |
| <include>io.prometheus:simpleclient_common</include> |
| <include>com.google.protobuf:protobuf-java</include> |
| |
| <include>org.scala-lang:*</include> |
| <include>commons-io:commons-io</include> |
| <include>org.openjdk.jol:jol-core</include> |
| </includes> |
| </artifactSet> |
| <relocations combine.children="append"> |
| <!-- Kryo --> |
| <relocation> |
| <pattern>com.esotericsoftware.kryo.</pattern> |
| <shadedPattern>org.apache.hudi.com.esotericsoftware.kryo.</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.esotericsoftware.reflectasm.</pattern> |
| <shadedPattern>org.apache.hudi.com.esotericsoftware.reflectasm.</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.esotericsoftware.minlog.</pattern> |
| <shadedPattern>org.apache.hudi.com.esotericsoftware.minlog.</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.objenesis.</pattern> |
| <shadedPattern>org.apache.hudi.org.objenesis.</shadedPattern> |
| </relocation> |
| |
| <relocation> |
| <pattern>com.google.protobuf.</pattern> |
| <shadedPattern>${kafka.connect.bundle.shade.prefix}com.google.protobuf.</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.yammer.metrics.</pattern> |
| <shadedPattern>${kafka.connect.bundle.shade.prefix}com.yammer.metrics. |
| </shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.beust.jcommander.</pattern> |
| <shadedPattern>${kafka.connect.bundle.shade.prefix}com.beust.jcommander. |
| </shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.eclipse.jetty.</pattern> |
| <shadedPattern>${kafka.connect.bundle.shade.prefix}org.eclipse.jetty. |
| </shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.apache.commons.io.</pattern> |
| <shadedPattern>org.apache.hudi.org.apache.commons.io.</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.openjdk.jol.</pattern> |
| <shadedPattern>org.apache.hudi.org.openjdk.jol.</shadedPattern> |
| </relocation> |
| </relocations> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| <exclude>META-INF/services/javax.*</exclude> |
| <exclude>**/*.proto</exclude> |
| <exclude>hbase-webapps/**</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| </resource> |
| <resource> |
| <directory>src/test/resources</directory> |
| </resource> |
| </resources> |
| </build> |
| |
| <dependencies> |
| <!-- Hoodie --> |
| <dependency> |
| <groupId>org.apache.hudi</groupId> |
| <artifactId>hudi-kafka-connect</artifactId> |
| <version>${project.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hudi</groupId> |
| <artifactId>hudi-java-client</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hudi</groupId> |
| <artifactId>hudi-utilities_${scala.binary.version}</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hudi</groupId> |
| <artifactId>hudi-common</artifactId> |
| <version>${project.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.servlet.jsp</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hudi</groupId> |
| <artifactId>hudi-hive-sync</artifactId> |
| <version>${project.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- Kryo --> |
| <dependency> |
| <groupId>com.esotericsoftware</groupId> |
| <artifactId>kryo-shaded</artifactId> |
| <version>${kryo.shaded.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| |
| <!-- Avro/ Parquet --> |
| <dependency> |
| <groupId>org.apache.avro</groupId> |
| <artifactId>avro</artifactId> |
| <version>${avro.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.parquet</groupId> |
| <artifactId>parquet-avro</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| |
| <!-- Protobuf --> |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| <version>${proto.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| |
| <!-- Hadoop --> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| <version>${hadoop.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.servlet.jsp</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.servlet</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-auth</artifactId> |
| <version>${hadoop.version}</version> |
| </dependency> |
| |
| <!-- Hive --> |
| <dependency> |
| <groupId>${hive.groupid}</groupId> |
| <artifactId>hive-service</artifactId> |
| <version>${hive.version}</version> |
| <scope>${utilities.bundle.hive.scope}</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>${hive.groupid}</groupId> |
| <artifactId>hive-service-rpc</artifactId> |
| <version>${hive.version}</version> |
| <scope>${utilities.bundle.hive.scope}</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>${hive.groupid}</groupId> |
| <artifactId>hive-jdbc</artifactId> |
| <version>${hive.version}</version> |
| <scope>${utilities.bundle.hive.scope}</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>${hive.groupid}</groupId> |
| <artifactId>hive-metastore</artifactId> |
| <version>${hive.version}</version> |
| <scope>${utilities.bundle.hive.scope}</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>${hive.groupid}</groupId> |
| <artifactId>hive-common</artifactId> |
| <version>${hive.version}</version> |
| <scope>${utilities.bundle.hive.scope}</scope> |
| </dependency> |
| |
| </dependencies> |
| </project> |
| |