sbt package and assembly include jars i don't want to -
i using sbt package generate jar, deploy after in cluster. issue sbt package command includes dependencies didn't specify in build file, , these causes many troubles when running jar.
well, answer question, here code:
assemblyexcludedjars in assembly := { val cp = (fullclasspath in assembly).value cp filter { f => f.data.getname.contains("spark-core") || f.data.getname == "spark-core_2.11-2.0.1.jar" } }
src: how exclude jar in final sbt assembly plugin
my problem turns out dependency: com.fasterxml.jackson.case.jsonfactory
it solved addiding next dependencies:
librarydependencies += "com.fasterxml.jackson.core" % "jackson-annotations" % "2.8.8" librarydependencies += "com.fasterxml.jackson.core" % "jackson-databind" % "2.8.8" librarydependencies += "com.owlike" % "genson" % "1.4"
Comments
Post a Comment