From 1dabb31cdf907cbee418c469368a59393fd52844 Mon Sep 17 00:00:00 2001 From: Eric Yang Date: Wed, 5 Dec 2018 15:56:10 -0500 Subject: [PATCH] YARN-9057. Removed third party class bundle from CSI jar file. Contributed by Weiwei Yang --- .../resources/assemblies/hadoop-yarn-dist.xml | 4 + .../hadoop-yarn/hadoop-yarn-csi/pom.xml | 78 ++++--------------- 2 files changed, 19 insertions(+), 63 deletions(-) diff --git a/hadoop-assemblies/src/main/resources/assemblies/hadoop-yarn-dist.xml b/hadoop-assemblies/src/main/resources/assemblies/hadoop-yarn-dist.xml index 4055acb3d81..a5c3c0e4b30 100644 --- a/hadoop-assemblies/src/main/resources/assemblies/hadoop-yarn-dist.xml +++ b/hadoop-assemblies/src/main/resources/assemblies/hadoop-yarn-dist.xml @@ -220,6 +220,10 @@ hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/hadoop-yarn-server-timelineservice-hbase-common/target/lib share/hadoop/${hadoop.component}/timelineservice/lib + + hadoop-yarn/hadoop-yarn-csi/target/lib + share/hadoop/${hadoop.component}/csi/lib + diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml index 27d8452d908..1a19f0e573a 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml @@ -86,14 +86,17 @@ org.apache.hadoop hadoop-common + provided org.apache.hadoop hadoop-yarn-common + provided org.apache.hadoop hadoop-yarn-api + provided javax.annotation @@ -114,6 +117,18 @@ org.apache.maven.plugins maven-dependency-plugin + + + package + + copy-dependencies + + + runtime + ${project.build.directory}/lib + + + org.apache.maven.plugins @@ -147,69 +162,6 @@ - - org.apache.maven.plugins - maven-shade-plugin - ${maven-shade-plugin.version} - - false - - - - package - - shade - - - - - io.grpc - csi.io.grpc - - - - com.google - csi.com.google - - - io.netty - csi.io.netty - - - - - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - unpack - package - - - - - - - - - - - - run - - - - org.apache.rat apache-rat-plugin