Add the code below to your build.sbt file
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}
This helped me a lot.
More Related Contents:
- How to add “provided” dependencies back to run/test tasks’ classpath?
- assembly-merge-strategy issues using sbt-assembly
- How to build an Uber JAR (Fat JAR) using SBT within IntelliJ IDEA?
- How to specify JVM maximum heap size “-Xmx” for running an application with “run” action in SBT?
- Setting up sbt to use Java 7 for compilation?
- how do I get sbt to use a local maven proxy repository (Nexus)?
- How to set heap size for sbt?
- Build.scala, % and %% symbols meaning
- How to change setting inside SBT command?
- Run custom task automatically before/after standard task
- How to force IntelliJ IDEA to reload dependencies from build.sbt after they changed?
- Debugging Scala code with simple-build-tool (sbt) and IntelliJ
- How to create SBT project with IntelliJ Idea?
- How to suppress info and success messages in sbt?
- “Unknown artifact. Not resolved or indexed” error for scalatest
- How to run jar generated by package (possibly with other jars under lib)?
- Exception in thread “main” java.lang.NoSuchMethodError: scala.Product.$init$(Lscala/Product;)
- Can multi-projects from GIT be used as SBT dependencies?
- ScalaTest in sbt: is there a way to run a single test without tags?
- How to prevent java.lang.OutOfMemoryError: PermGen space at Scala compilation?
- Install sbt on ubuntu [closed]
- How to exclude commons-logging from a scala/sbt/slf4j project?
- How to reference external sbt project from another sbt project?
- Spark2.1.0 incompatible Jackson versions 2.7.6
- How do I run an sbt main class from the shell as normal command-line program?
- Is there a simple example of how to generate verilog from Chisel3 module?
- SBT stop run without exiting
- Perform a typed join in Scala with Spark Datasets
- Left Anti join in Spark?
- Missing parameter type error by calling toSet?