【发布时间】:2014-10-21 07:53:36
【问题描述】:
在独立模式(不是 Play 应用程序的一部分)下使用 Play 的 anorm 包的最新版本(例如,2.3 或 2.4)的当前 sbt 语法是什么?
【问题讨论】:
-
@applicius 把它钉在下面。
在独立模式(不是 Play 应用程序的一部分)下使用 Play 的 anorm 包的最新版本(例如,2.3 或 2.4)的当前 sbt 语法是什么?
【问题讨论】:
在build.sbt:
resolvers ++= Seq(
"Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/")
libraryDependencies ++= Seq(
"com.typesafe.play" %% "anorm" % "2.3.6")
见example。
【讨论】:
[warn] Host repo.typeseafe.com not found. url=http://repo.typeseafe.com/typesafe/releases/com/typesafe/play/anorm_2.11/2.3.2/anorm_2.11-2.3.2.pom [info] You probably access the destination server through a proxy server that is not well configured.sbt.ResolveException: unresolved dependency: com.typesafe.play#anorm_2.11;2.3.2: not found
build.sbt,并将上面的结果粘贴到我的问题中。
repo.typesafe.com(如答案),而不是repo.typeseafe.com。
Anorm 现在发布如下,无需额外的解析器。
"org.playframework.anorm" %% "anorm" % "2.6.2"
【讨论】: