【发布时间】:2021-02-27 16:10:33
【问题描述】:
拥有这些部门:
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-actor-typed" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.lightbend.akka" %% "akka-stream-alpakka-json-streaming" % akkaJsonStreaming,
"io.circe" %% "circe-generic-extras" % circeVersion,
"de.heikoseeberger" %% "akka-http-circe" % akkaHttpCirce,
"commons-codec" % "commons-codec" % commonsCodecVersion,
"org.scalatest" %% "scalatest" % scalaTestVersion % "it, test",
)
当我运行 sbt assembly 时出现错误:
[error] (assembly) deduplicate: different file contents found in the following:
[error] /home/baku/.cache/coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.10.5/jackson-annotations-2.10.5.jar:module-info.class
[error] /home/baku/.cache/coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.10.5/jackson-core-2.10.5.jar:module-info.class
[error] /home/baku/.cache/coursier/v1/https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.10.5/jackson-databind-2.10.5.jar:module-info.class
知道如何解决这个问题吗?
【问题讨论】:
-
您能分享一下
akkaHttpVersion、akkaVersion、akkaJsonStreaming,以及您正在使用的所有其他版本吗? -
@TomerShetah val akkaVersion = "2.6.8", val akkaHttpVersion = "10.2.0", val akkaJsonStreaming = "2.0.2"
标签: scala sbt-assembly