得到
错误] 模块已通过 {file:/hehe/}my-app: 中冲突的跨版本后缀解决
[错误] com.fasterxml.jackson.module:jackson-module-scala _2.11,_2.10
在sbt clean编译
尝试排除 2.10 并使用 2.11:
(“com.my.company”%“has-bad-dependency”%“latest.integration”)。排除(“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”)。排除(“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这导致 https://github.com/cleverage/play2-elasticsearch/issues/49
它对我不起作用,我也不知道为什么。
最佳答案
啊,对不起,我瞎了。
(“com.my.company”%“has-bad-dependency”%“latest.integration”)。排除(“com.fasterxml.jackson.module”,“jackson-module-scala_2.10”),
我的artifactId错误,它没有_2.10。
工作正常。
关于scala - SBT,解析模块已通过冲突的跨版本后缀解决,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40215297/