aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorSteve Loughran <stevel@hortonworks.com>2016-03-03 09:35:49 -0800
committerReynold Xin <rxin@databricks.com>2016-03-03 09:35:49 -0800
commit9a48c656eec8e47a55e5e0ecc6a7901c5be31566 (patch)
tree94a4e48c84ae2e2d0589523c7019e7833ef6db38 /pom.xml
parent70f6f9649bdb13b6745473b7edc4cd06b10f99d2 (diff)
downloadspark-9a48c656eec8e47a55e5e0ecc6a7901c5be31566.tar.gz
spark-9a48c656eec8e47a55e5e0ecc6a7901c5be31566.tar.bz2
spark-9a48c656eec8e47a55e5e0ecc6a7901c5be31566.zip
[SPARK-13599][BUILD] remove transitive groovy dependencies from Hive
## What changes were proposed in this pull request? Modifies the dependency declarations of the all the hive artifacts, to explicitly exclude the groovy-all JAR. This stops the groovy classes *and everything else in that uber-JAR* from getting into spark-assembly JAR. ## How was this patch tested? 1. Pre-patch build was made: `mvn clean install -Pyarn,hive,hive-thriftserver` 1. spark-assembly expanded, observed to have the org.codehaus.groovy packages and JARs 1. A maven dependency tree was created `mvn dependency:tree -Pyarn,hive,hive-thriftserver -Dverbose > target/dependencies.txt` 1. This text file examined to confirm that groovy was being imported as a dependency of `org.spark-project.hive` 1. Patch applied 1. Repeated step1: clean build of project with ` -Pyarn,hive,hive-thriftserver` set 1. Examined created spark-assembly, verified no org.codehaus packages 1. Verified that the maven dependency tree no longer references groovy Note also that the size of the assembly JAR was 181628646 bytes before this patch, 166318515 after —15MB smaller. That's a good metric of things being excluded Author: Steve Loughran <stevel@hortonworks.com> Closes #11449 from steveloughran/fixes/SPARK-13599-groovy-dependency.
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 2148379896..85c0131b4e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1327,6 +1327,10 @@
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>org.codehaus.groovy</groupId>
+ <artifactId>groovy-all</artifactId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
@@ -1398,6 +1402,10 @@
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>org.codehaus.groovy</groupId>
+ <artifactId>groovy-all</artifactId>
+ </exclusion>
</exclusions>
</dependency>
@@ -1492,6 +1500,10 @@
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>org.codehaus.groovy</groupId>
+ <artifactId>groovy-all</artifactId>
+ </exclusion>
</exclusions>
</dependency>
@@ -1537,6 +1549,10 @@
<groupId>org.apache.thrift</groupId>
<artifactId>libthrift</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>org.codehaus.groovy</groupId>
+ <artifactId>groovy-all</artifactId>
+ </exclusion>
</exclusions>
</dependency>
@@ -1585,6 +1601,10 @@
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>org.codehaus.groovy</groupId>
+ <artifactId>groovy-all</artifactId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
@@ -1809,6 +1829,7 @@
io.netty:netty and io.netty:netty-all.
-->
<exclude>org.jboss.netty</exclude>
+ <exclude>org.codehaus.groovy</exclude>
</excludes>
<searchTransitive>true</searchTransitive>
</bannedDependencies>