我使用的是Typesafe活化剂的上一个版本(1.2.8与Scala2.11.x)。
当我将依赖项"org.apache.httpcomponents" %% "httpclient" % "4.4-alpha1"添加到build.sbt中的项目时,如下所示:
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.3.4",
"com.typesafe.akka" %% "akka-testkit" % "2.3.4",
"org.scalatest" %% "scalatest" % "2.1.6" % "test",
"junit" % "junit" % "4.11" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test",
"org.apache.httpcomponents" %% "httpclient" % "4.4-alpha1" // my added dependency
)..。并尝试更新项目(在激活器的cli中),我得到了一个错误:
[error] (*:update) sbt.ResolveException: unresolved dependency: org.apache.httpcomponents#httpclient_2.11;4.4-alpha1: not found我知道scala的版本不是二进制兼容的,但是我尝试获得一个纯java库org.apache.httpcomponent#httpclient!为什么激活剂在_2.11的末尾加上“artifactId”,并制造错误的urls.?如何解决这个问题?
发布于 2014-08-20 09:09:34
将第一个%%更改为单个%。双字符版本用于获取交叉建造库,而您的版本则不是。
https://stackoverflow.com/questions/25400625
复制相似问题