冲突的交叉版本后缀(sbt,Scala-STM,Play-JSON)
发布时间:2020-12-16 09:41:04 所属栏目:安全 来源:网络整理
导读:我正在使用一个依赖于Mandubian的play-json 2.2-SNAPSHOT的JSON扩展。一切正常,直到现在我都有一个基于Scala-STM的项目。 sbt报告以下问题: [error] Modules were resolved with conflicting cross-version suffixes in {file:folder}project:[error] org.
我正在使用一个依赖于Mandubian的play-json 2.2-SNAPSHOT的JSON扩展。一切正常,直到现在我都有一个基于Scala-STM的项目。 sbt报告以下问题:
[error] Modules were resolved with conflicting cross-version suffixes in {file:folder}project: [error] org.scala-stm:scala-stm _2.10,_2.10.0 java.lang.RuntimeException: Conflicting cross-version suffixes in: org.scala-stm:scala-stm 有没有机会深入了解这两个“冲突”版本的来源?我很惊讶,播放器应该取决于scala-stm? 此外,有没有办法说服sbt关闭…。因为明显的是2.10和2.10.0是等效版本。 编辑:这似乎是一个sbt 0.13错误(可能与Play-JSON无关),因为如果我恢复到0.12.4,项目成功更新和构建。我仍然对sbt 0.13的工作感兴趣。 解决方法
你可以通过删除排除scala-stm来解决这个问题
"dependencyGroupId" %% "dependencyArtifactId" % "dependencyVersion" exclude("org.scala-stm","scala-stm_2.10.0") 不要忘记做sbt干净。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |