Skip to content
Permalink
Browse files
[FLINK-10984][hadoop] Add flink-shaded-hadoop-2-uber
  • Loading branch information
sunjincheng121 authored and zentol committed Apr 24, 2019
1 parent 2ef6ad9 commit e46707171b2d43d383df5c4ce9ad79563000511d
Showing 9 changed files with 782 additions and 3 deletions.
@@ -0,0 +1,163 @@
<?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/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded</artifactId>
<version>7.0</version>
<relativePath>..</relativePath>
</parent>

<artifactId>flink-shaded-hadoop-2-uber</artifactId>
<name>flink-shaded-hadoop-2-uber</name>

<packaging>jar</packaging>
<version>${hadoop.version}-7.0</version>

<properties>
<hadoop.version>2.4.1</hadoop.version>
</properties>

<!--
the only dependency of the 'flink-shaded-hadoop-2' artifact, out
of which we build a fat jar
-->

<dependencies>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-hadoop-2</artifactId>
<version>${hadoop.version}-7.0</version>
</dependency>
</dependencies>

<build>
<plugins>

<!--
Build an uber jar of the shaded-hadoop-dependency
and all its transitive dependencies
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>dependency-convergence</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>true</skip>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<id>shade-flink</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<dependencyReducedPomLocation>${project.basedir}/target/dependency-reduced-pom.xml</dependencyReducedPomLocation>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>

<filters>
<!-- Exclude signatures -->
<filter>
<artifact>*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>

<artifactSet>
<includes>
<include>*:*</include>
</includes>
<excludes>
<exclude>org.slf4j:*</exclude>
<exclude>log4j:*</exclude>
</excludes>
</artifactSet>

<relocations>
<relocation>
<pattern>com.google</pattern>
<shadedPattern>org.apache.flink.hadoop.shaded.com.google</shadedPattern>
<excludes>
<exclude>com.google.inject.**</exclude>
</excludes>
</relocation>
<relocation>
<pattern>org.objectweb.asm</pattern>
<shadedPattern>org.apache.flink.hadoop.shaded.org.objectweb.asm</shadedPattern>
</relocation>
<relocation>
<pattern>org.jboss.netty</pattern>
<shadedPattern>org.apache.flink.hadoop.shaded.org.jboss.netty</shadedPattern>
</relocation>
<relocation>
<pattern>io.netty</pattern>
<shadedPattern>org.apache.flink.hadoop.shaded.io.netty</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.curator</pattern>
<shadedPattern>org.apache.flink.hadoop.shaded.org.apache.curator</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.http</pattern>
<shadedPattern>org.apache.flink.hadoop.shaded.org.apache.http</shadedPattern>
</relocation>
<relocation>
<pattern>org.apache.commons.httpclient</pattern>
<shadedPattern>org.apache.flink.hadoop.shaded.org.apache.commons.httpclient</shadedPattern>
</relocation>
<relocation>
<pattern>org.htrace</pattern>
<shadedPattern>org.apache.flink.hadoop.shaded.org.htrace</shadedPattern>
</relocation>
<relocation>
<pattern>org.codehaus.jackson</pattern>
<shadedPattern>org.apache.flink.hadoop.shaded.org.codehaus.jackson</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
@@ -0,0 +1,52 @@
flink-shaded-hadoop-2-uber
Copyright 2014-2019 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).

This project bundles the following dependencies under the Apache Software License 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)

- com.jamesmurty.utils:java-xmlbuilder:0.4
- commons-beanutils:commons-beanutils:1.9.3
- commons-cli:commons-cli:1.3.1
- commons-codec:commons-codec:1.10
- commons-collections:commons-collections:3.2.2
- commons-configuration:commons-configuration:1.7
- commons-daemon:commons-daemon:1.0.13
- commons-digester:commons-digester:1.8.1
- commons-io:commons-io:2.4
- commons-lang:commons-lang:2.6
- commons-logging:commons-logging:1.1.3
- commons-net:commons-net:3.1
- org.apache.avro:avro:1.8.2
- org.apache.commons:commons-compress:1.18
- org.apache.commons:commons-math3:3.5
- org.apache.zookeeper:zookeeper:3.4.10
- org.codehaus.jackson:jackson-core-asl:1.9.13
- org.codehaus.jackson:jackson-mapper-asl:1.9.13
- org.xerial.snappy:snappy-java:1.1.4

This project bundles the following dependencies under the BSD license.
See bundled license files for details.

- com.jcraft:jsch:0.1.42
- com.thoughtworks.paranamer:paranamer:2.7
- xmlenc:xmlenc:0.52

This project bundles the following dependencies under the Common Development and Distribution License (CDDL) 1.0.
See bundled license files for details.

- javax.activation:activation:1.1 (http://java.sun.com/products/javabeans/jaf/index.jsp)
- javax.servlet:servlet-api:2.5 (https://repo1.maven.org/maven2/javax/servlet/servlet-api/2.5/)
- javax.xml.stream:stax-api:1.0-2 (http://central.maven.org/maven2/javax/xml/stream/stax-api/1.0-2/)

This project bundles the following dependencies under the Common Development and Distribution License (CDDL) 1.1.
See bundled license files for details.

- com.sun.jersey:jersey-client:1.9 (http://central.maven.org/maven2/com/sun/jersey/jersey-client/1.9/)
- javax.xml.bind:jaxb-api:2.2.2 (https://jaxb.dev.java.net/)

This project bundles "org.tukaani:xz:1.5".
This Java implementation of XZ has been put into the public domain, thus you can do
whatever you want with it. All the files in the package have been written by Lasse Collin,
but some files are heavily based on public domain code written by Igor Pavlov.

0 comments on commit e467071

Please sign in to comment.