当前在独立模式下使用Play的最新版本(如2.3或2.4)的anorm包的sbt语法是什么?
在 build.sbt
文件中:
resolvers ++= Seq(
"Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/")
libraryDependencies ++= Seq(
"com.typesafe.play" %% "anorm" % "2.3.6")
参见示例。
[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
- theglauberbuild.sbt
,并将结果粘贴在我的问题上方。 - theglauberrepo.typesafe.com
(如答案中所示),而不是repo.typeseafe.com
。 - cchantepAnorm现在已经发布,不需要额外的解析器。
"org.playframework.anorm" %% "anorm" % "2.6.2"