[SPARK-1644] The org.datanucleus:* should not be packaged into spark-assembly-*.jar
Author: witgo <witgo@qq.com> Closes #688 from witgo/SPARK-1644 and squashes the following commits: 56ad6ac [witgo] review commit 87c03e4 [witgo] Merge branch 'master' of https://github.com/apache/spark into SPARK-1644 6ffa7e4 [witgo] review commit a597414 [witgo] The org.datanucleus:* should not be packaged into spark-assembly-*.jar
This commit is contained in:
parent
2f452cbaf3
commit
561510867a
|
@ -96,6 +96,7 @@
|
|||
<filter>
|
||||
<artifact>*:*</artifact>
|
||||
<excludes>
|
||||
<exclude>org.datanucleus:*</exclude>
|
||||
<exclude>META-INF/*.SF</exclude>
|
||||
<exclude>META-INF/*.DSA</exclude>
|
||||
<exclude>META-INF/*.RSA</exclude>
|
||||
|
|
|
@ -579,6 +579,7 @@ object SparkBuild extends Build {
|
|||
def extraAssemblySettings() = Seq(
|
||||
test in assembly := {},
|
||||
mergeStrategy in assembly := {
|
||||
case PathList("org", "datanucleus", xs @ _*) => MergeStrategy.discard
|
||||
case m if m.toLowerCase.endsWith("manifest.mf") => MergeStrategy.discard
|
||||
case m if m.toLowerCase.matches("meta-inf.*\\.sf$") => MergeStrategy.discard
|
||||
case "log4j.properties" => MergeStrategy.discard
|
||||
|
|
Loading…
Reference in a new issue