SBT,解析模块在中解决了冲突的跨版本后缀

SBT, resolving modules were resolved with conflicting cross-version suffixes in

得到 error] Modules were resolved with conflicting cross-version suffixes in {file:/hehe/}my-app: [error] com.fasterxml.jackson.module:jackson-module-scala _2.11, _2.10 sbt clean compile

期间

尝试排除 2.10 并使用 2.11:

("com.my.company" % "has-bad-dependency" % "latest.integration").exclude("com.fasterxml.jackson.module", "jackson-module-scala"), ("com.fasterxml.jackson.module" % "jackson-module-scala_2.11" % "2.4.2").force()

("com.my.company" % "has-bad-dependency" % "latest.integration").exclude("com.fasterxml.jackson.module", "jackson-module-scala"), ("com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.4.2").force()

没有帮助。错误是一样的。

有机会修复吗?

我见过各种 SO QA,例如 Conflicting cross-version suffixes in: org.scalamacros:quasiquotes which leads to https://github.com/cleverage/play2-elasticsearch/issues/49

它对我不起作用,我也不知道为什么。

啊,对不起,我瞎了。 ("com.my.company" % "has-bad-dependency" % "latest.integration").exclude("com.fasterxml.jackson.module", "jackson-module-scala_2.10"),

我的artifactId错了,没有_2.10.

工作正常。