aboutsummaryrefslogtreecommitdiff
path: root/assembly/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'assembly/pom.xml')
-rw-r--r--assembly/pom.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/assembly/pom.xml b/assembly/pom.xml
index 9fbb037115..de7b75258e 100644
--- a/assembly/pom.xml
+++ b/assembly/pom.xml
@@ -43,6 +43,12 @@
</properties>
<dependencies>
+ <!-- Promote Guava to compile scope in this module so it's included while shading. -->
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ <scope>compile</scope>
+ </dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.binary.version}</artifactId>
@@ -113,6 +119,18 @@
<goal>shade</goal>
</goals>
<configuration>
+ <relocations>
+ <relocation>
+ <pattern>com.google</pattern>
+ <shadedPattern>org.spark-project.guava</shadedPattern>
+ <includes>
+ <include>com.google.common.**</include>
+ </includes>
+ <excludes>
+ <exclude>com.google.common.base.Optional**</exclude>
+ </excludes>
+ </relocation>
+ </relocations>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">