sbt-assembly

assembly-merge-strategy issues using sbt-assembly

落花浮王杯 提交于 2019-11-26 15:59:19
问题 I am trying to convert a scala project into a deployable fat jar using sbt-assembly. When I run my assembly task in sbt I am getting the following error: Merging 'org/apache/commons/logging/impl/SimpleLog.class' with strategy 'deduplicate' :assembly: deduplicate: different file contents found in the following: [error] /Users/home/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.1.1.jar:org/apache/commons/logging/impl/SimpleLog.class [error] /Users/home/.ivy2/cache/org.slf4j

How to add “provided” dependencies back to run/test tasks' classpath?

旧时模样 提交于 2019-11-26 12:22:05
问题 Here\'s an example build.sbt : import AssemblyKeys._ assemblySettings buildInfoSettings net.virtualvoid.sbt.graph.Plugin.graphSettings name := \"scala-app-template\" version := \"0.1\" scalaVersion := \"2.9.3\" val FunnyRuntime = config(\"funnyruntime\") extend(Compile) libraryDependencies += \"org.spark-project\" %% \"spark-core\" % \"0.7.3\" % \"provided\" sourceGenerators in Compile <+= buildInfo buildInfoPackage := \"com.psnively\" buildInfoKeys := Seq[BuildInfoKey](name, version,

sbt-assembly: deduplication found error

大憨熊 提交于 2019-11-26 07:00:58
问题 I am not sure whether mergestrategy or exclude jars is the best option here. Any help with how do I proceed further with this error will be great! [sameert@pzxdcc0151 approxstrmatch]$ sbt assembly [info] Loading project definition from /apps/sameert/software/approxstrmatch/project [info] Set current project to approxstrmatch (in build file:/apps/sameert/software/approxstrmatch/) [info] Including from cache: scala-library.jar [info] Checking every *.class/*.jar file\'s SHA-1. [info] Merging