spark + sbt-assembly: “deduplicate: different file contents found in the following”
I ran spark application and wanna pack the test classes into the fat jar. What is weird is I ran "sbt assembly" successfully, but failed when I ran "sbt test:assembly". I tried sbt-assembly : including test classes , it didn't work for my case. SBT version : 0.13.8 build.sbt: import sbtassembly.AssemblyPlugin._ name := "assembly-test" version := "1.0" scalaVersion := "2.10.5" libraryDependencies ++= Seq( ("org.apache.spark" % "spark-core_2.10" % "1.3.1" % Provided) .exclude("org.mortbay.jetty", "servlet-api"). exclude("commons-beanutils", "commons-beanutils-core"). exclude("commons-collections