IntelliJ IDEA 15.0.2中导入SBT项目(Play Framework)期间的版本冲突

时间:2016-01-17 00:07:30

标签: intellij-idea import playframework sbt typesafe

我在IntelliJ IDEA 15.0.2中使用Typesafe Activator,Play 2.5.0-M1(激活器)构建应用程序,当我导入/打开它时...

SBT project import

[warn] Multiple dependencies with the same organization/name but different versions. To avoid conflict, pick one version: 
[warn] * org.apache.httpcomponents:httpclient:(4.0.1, 4.3.4) 
[warn] * com.google.guava:guava:(18.0, 16.0.1) 
[warn] * org.apache.httpcomponents:httpcore:(4.0.1, 4.3.2) 
[warn] * commons-logging:commons-logging:(1.1.1, 1.1.3) 
[warn] * org.scala-lang.modules:scala-parser-combinators_2.11:(1.0.1, 1.0.3) 
[warn] * org.scala-lang.modules:scala-xml_2.11:(1.0.1, 1.0.3)

[SBT project import conflict][1]

我应该对我的项目或IntelliJ IDEA配置进行哪些更改?

link to GitHub repository

1 个答案:

答案 0 :(得分:1)

您可以尝试使用dependencyOverrides键来准确指定要使用的版本。这将关闭警告。

http://www.scala-sbt.org/0.13/docs/Library-Management.html#Overriding+a+version