问题描述
我遇到了一些重复数据删除错误,如下所示,这表明我的一些依赖项导入了其他依赖项,其中包含具有相同路径名的文件。由于它们具有相同的路径,因此它们不能一起包含在我尝试使用 sbt-assembly 创建的 jar 文件中。
我知道修复它的干净方法是修复我的依赖项。下面示例中相互冲突的依赖项似乎是 reactive-streams
和 reactive-streams-flow-adapters
,但我不确定它们是什么以及它们来自哪里。如何找到我的哪些依赖项正在导入它们?
如果我能解决这个问题,我该如何解决?除了删除其中一个之外,还有其他方法吗?
重复数据删除错误示例:
[error] (assembly) deduplicate: different file contents found in the following:
[error] /home/guillaume/.cache/coursier/v1/https/repo1.maven.org/maven2/org/reactivestreams/reactive-streams-flow-adapters/1.0.2/reactive-streams-flow-adapters-1.0.2.jar:org/reactivestreams/FlowAdapters$FlowPublisherFromReactive.class
[error] /home/guillaume/.cache/coursier/v1/https/repo1.maven.org/maven2/org/reactivestreams/reactive-streams/1.0.3/reactive-streams-1.0.3.jar:org/reactivestreams/FlowAdapters$FlowPublisherFromReactive.class
这是我的依赖项列表,如果有帮助的话:
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-databind" % "2.12.2",libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test",libraryDependencies += "com.softwaremill.sttp.client3" %% "core" % "3.3.6",libraryDependencies += "com.softwaremill.sttp.client3" %% "httpclient-backend-zio" % "3.3.6",libraryDependencies += "dev.zio" %% "zio" % "1.0.9",// libraryDependencies += "dev.zio" %% "zio-streams" % "1.0.9",libraryDependencies += "org.apache.commons" % "commons-compress" % "1.20",libraryDependencies += "org.scalactic" %% "scalactic" % "3.2.9",libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.9" % "test",libraryDependencies += ("tech.sparse" %% "toml-scala" % "0.2.2").cross(CrossVersion.for3Use2_13),
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)