beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhalp...@apache.org
Subject [1/2] beam git commit: [BEAM-1411] Shade Guava in beam-sdks-java-io-hdfs module
Date Thu, 09 Feb 2017 03:01:20 GMT
Repository: beam
Updated Branches:
  refs/heads/master 591118e66 -> d17d2db1d


[BEAM-1411] Shade Guava in beam-sdks-java-io-hdfs module


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/1a866466
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/1a866466
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/1a866466

Branch: refs/heads/master
Commit: 1a8664665b1c119cecbceedf698295eaabc467f8
Parents: 591118e
Author: Michael Luckey <michael.luckey@ext.gfk.com>
Authored: Thu Feb 9 01:31:47 2017 +0100
Committer: Dan Halperin <dhalperi@google.com>
Committed: Wed Feb 8 19:01:00 2017 -0800

----------------------------------------------------------------------
 sdks/java/io/hdfs/pom.xml | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/1a866466/sdks/java/io/hdfs/pom.xml
----------------------------------------------------------------------
diff --git a/sdks/java/io/hdfs/pom.xml b/sdks/java/io/hdfs/pom.xml
index 48c269f..0fa5021 100644
--- a/sdks/java/io/hdfs/pom.xml
+++ b/sdks/java/io/hdfs/pom.xml
@@ -31,6 +31,40 @@
   <description>Library to read and write Hadoop/HDFS file formats from Beam.</description>
 
   <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-shade-plugin</artifactId>
+          <executions>
+            <execution>
+              <phase>package</phase>
+              <goals>
+                <goal>shade</goal>
+              </goals>
+              <configuration>
+                <artifactSet>
+                  <includes>
+                    <include>com.google.guava:guava</include>
+                  </includes>
+                </artifactSet>
+                <relocations>
+                  <relocation>
+                    <pattern>com.google.common</pattern>
+                    <shadedPattern>org.apache.beam.sdk.io.hdfs.repackaged.com.google.common</shadedPattern>
+                  </relocation>
+                  <relocation>
+                    <pattern>com.google.thirdparty</pattern>
+                    <shadedPattern>org.apache.beam.sdk.io.hdfs.repackaged.com.google.thirdparty</shadedPattern>
+                  </relocation>
+                </relocations>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -49,6 +83,10 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-shade-plugin</artifactId>
+      </plugin>
     </plugins>
   </build>
 


Mime
View raw message