Skip to content

Commit b86dcf4

Browse files
author
sparksburnitt
committed
Update the maven-shade-plugin version and exclude artifacts which depend on, and cause inclusion of, the wrong scala compiler (2.10.0) in the shaded jar. This was crashing the spark-shell during initialization when it detected the scala lib version 2.10.4 != scala compiler version 2.10.0
1 parent 73d6200 commit b86dcf4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pom.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,8 +1205,17 @@
12051205
<plugin>
12061206
<groupId>org.apache.maven.plugins</groupId>
12071207
<artifactId>maven-shade-plugin</artifactId>
1208-
<version>2.3</version>
1208+
<version>2.4.1</version>
12091209
<configuration>
1210+
<artifactSet>
1211+
<excludes>
1212+
<exclude>org.json4s:json4s-jackson_2.10:jar:</exclude>
1213+
<exclude>org.json4s:json4s-core_2.10:jar:</exclude>
1214+
<exclude>org.json4s:json4s-ast_2.10:jar:</exclude>
1215+
<exclude>org.scala-lang:scalap:jar:</exclude>
1216+
<exclude>org.scala-lang:scala-compiler:jar:</exclude>
1217+
</excludes>
1218+
</artifactSet>
12101219
<createDependencyReducedPom>false</createDependencyReducedPom>
12111220
<filters>
12121221
<filter>

0 commit comments

Comments
 (0)