From 53b57fdfa45da84a2efec35c76887fbd1337b2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elek=2C=20M=C3=A1rton?= Date: Wed, 18 Sep 2019 22:25:15 +0200 Subject: [PATCH] HDDS-2121. Create a shaded ozone filesystem (client) jar (#1452) --- hadoop-ozone/ozonefs-lib-current/pom.xml | 145 +++++++++++++++++++---- 1 file changed, 125 insertions(+), 20 deletions(-) diff --git a/hadoop-ozone/ozonefs-lib-current/pom.xml b/hadoop-ozone/ozonefs-lib-current/pom.xml index 44e716a844c..9d77a780afc 100644 --- a/hadoop-ozone/ozonefs-lib-current/pom.xml +++ b/hadoop-ozone/ozonefs-lib-current/pom.xml @@ -31,6 +31,7 @@ UTF-8 true + org.apache.hadoop.ozone.shaded @@ -46,26 +47,6 @@ - - org.apache.maven.plugins - maven-dependency-plugin - - - - unpack-dependencies - - prepare-package - - target/classes - compile - META-INF/*.SF - - slf4j-api,slf4j-log4j12,log4j-api,log4j-core,log4j - - - - - org.codehaus.mojo animal-sniffer-maven-plugin @@ -83,6 +64,110 @@ true + + org.apache.maven.plugins + maven-shade-plugin + + + package + + shade + + + + + + META-INF/BC1024KE.DSA + META-INF/BC2048KE.DSA + META-INF/BC1024KE.SF + META-INF/BC2048KE.SF + + + + + + + org + + ${shaded.prefix}.org + + + org.yaml.**.* + org.sqlite.**.* + org.tukaani.**.* + org.bouncycastle.**.* + org.fusesource.leveldbjni.**.* + org.rocksdb.**.* + org.apache.commons.cli.**.* + org.apache.commons.compress.**.* + org.apache.commons.codec.**.* + org.apache.commons.beanutils.**.* + org.apache.commons.collections.**.* + org.apache.commons.digester.**.* + org.apache.commons.logging.**.* + org.apache.commons.pool2.**.* + org.apache.commons.validator.**.* + org.sqlite.**.* + org.apache.thrift.**.* + + org.iq80.**.* + org.fusesource.**.* + + org.apache.http.**.* + + + + com + + ${shaded.prefix}.com + + + com.google.common.**.* + com.google.gson.**.* + com.codahale.**.* + com.lmax.**.* + com.github.joshelser.**.* + com.twitter.**.* + + + + picocli + + ${shaded.prefix}.picocli + + + + info + + ${shaded.prefix}.info + + + + io + + ${shaded.prefix}.io + + + + + + okio + + ${shaded.prefix}.okio + + + + okhttp3 + + ${shaded.prefix}.okhttp3 + + + + + + + @@ -100,6 +185,26 @@ org.apache.hadoop hadoop-hdfs + + org.apache.hadoop + hadoop-hdfs-client + + + org.slf4j + slf4j-api + + + org.apache.logging.log4j + log4j-api + + + org.apache.logging.log4j + log4j-core + + + com.google.code.findbugs + jsr305 +