为什么是com.typesafe.slick#slick_2.11未解决的依赖性错误; 2.0.2:

2019-10-20 19:02发布

我米试图运行招呼从类型安全的激活我创建SBT项目光滑例如当我输入运行它给了我下面的错误

warn]   ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.slick#slick_2.11;2.0.2: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.slick#slick_2.11;2.0.2: not found
[error] Total time: 1 s, completed Aug 25, 2014 12:20:42 AM

这里是我的build.sbt文件

name :="hellos"

version :="1.0"

scalaVersion := "2.11.1"

mainClass in Compile := Some("HelloSlick")

libraryDependencies ++= List(
  "com.typesafe.slick" %% "slick" % "2.0.2",
  "org.slf4j" % "slf4j-nop" % "1.6.4",
  "com.h2database" % "h2" % "1.3.170"
)

我米使用Ubuntu 12.04和光滑的网站没有jar文件存在下载这么喜欢它不是在我像Java和阿卡系统路径变量

Answer 1:

您需要解析服务器的类型安全的存储库:

libraryDependencies ++= List(
  "com.typesafe.slick" %% "slick" % "2.0.2",
  "org.slf4j" % "slf4j-nop" % "1.6.4",
  "com.h2database" % "h2" % "1.3.170"
)

resolvers += "typesafe" at "http://repo.typesafe.com/typesafe/releases/"

编辑:

看来,斯卡拉2.11你需要指定光滑版本为2.1:

"com.typesafe.slick" %% "slick" % "2.1.0"


文章来源: Why is UNRESOLVED DEPENDENCIES error with com.typesafe.slick#slick_2.11;2.0.2: not found?
标签: scala sbt slick