You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by vb...@apache.org on 2019/05/03 20:49:56 UTC

[incubator-hudi] branch master updated: HUDI-101: added mevn-shade plugin with filters.

This is an automated email from the ASF dual-hosted git repository.

vbalaji pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new f47f0eb  HUDI-101: added mevn-shade plugin with filters.
f47f0eb is described below

commit f47f0eb6cba5ae861a8c9e8eb06b6acdb68d159f
Author: Abhishek Sharma <ab...@Abhisheks-MacBook-Pro.local>
AuthorDate: Wed May 1 15:45:39 2019 -0400

    HUDI-101: added mevn-shade plugin with filters.
---
 pom.xml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/pom.xml b/pom.xml
index d379920..9601e28 100644
--- a/pom.xml
+++ b/pom.xml
@@ -122,6 +122,7 @@
   <properties>
     <maven-dependency-plugin.version>2.10</maven-dependency-plugin.version>
     <maven-jar-plugin.version>2.6</maven-jar-plugin.version>
+    <maven-shade-plugin>2.4.1</maven-shade-plugin>
     <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
     <fasterxml.version>2.8.11</fasterxml.version>
     <parquet.version>1.8.1</parquet.version>
@@ -257,6 +258,35 @@
           </excludes>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-shade-plugin</artifactId>
+        <version>${maven-shade-plugin}</version>
+        <executions>
+          <!-- Run shade goal on package phase -->
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>shade</goal>
+            </goals>
+            <configuration>
+              <filters>
+                <filter>
+                  <!-- Do not copy the signatures in the META-INF folder.
+                  Otherwise, this might cause SecurityExceptions when using the JAR. -->
+                  <artifact>*:*</artifact>
+                  <excludes>
+                    <exclude>META-INF/*.SF</exclude>
+                    <exclude>META-INF/*.DSA</exclude>
+                    <exclude>META-INF/*.RSA</exclude>
+                  </excludes>
+                </filter>
+              </filters>
+              <createDependencyReducedPom>false</createDependencyReducedPom>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
 
     <pluginManagement>