在 Play 2 中使用 squeryl
use squeryl with Play 2
我是 Play 和 Scala 的新手,我正在尝试在 build.sbt 导入 squeryl 但没有成功。我正在关注 Play for Scala 这本书。
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.squeryl#squeryl;0.9.5-6: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.squeryl:squeryl:0.9.5-6 (/home/felipe/workspace-play/products/build.sbt#L9-20)
[warn] +- products:products_2.11:1.0-SNAPSHOT
sbt.ResolveException: unresolved dependency: org.squeryl#squeryl;0.9.5-6: not found
这是我的build.sbt
name := """products"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
jdbc,
cache,
ws,
evolutions,
"org.squeryl" % "squeryl" % "0.9.5-6",
// "postgresql" % "postgresql" % "9.1-901-1.jdbc4",
"com.typesafe.play" %% "anorm" % "2.4.0",
"net.sf.barcode4j" % "barcode4j" % "2.0",
"org.scalatestplus.play" %% "scalatestplus-play" % "1.5.1" % Test
)
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases"
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
resolvers += "Sonatype releases" at "http://oss.sonatype.org/content/repositories/releases"
resolvers += "webjars" at "http://webjars.github.com/m2"
routesGenerator := InjectedRoutesGenerator
我更改为 "org.squeryl" % "squeryl_2.9.0-1" % "0.9.4" 并且有效。
我是 Play 和 Scala 的新手,我正在尝试在 build.sbt 导入 squeryl 但没有成功。我正在关注 Play for Scala 这本书。
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.squeryl#squeryl;0.9.5-6: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.squeryl:squeryl:0.9.5-6 (/home/felipe/workspace-play/products/build.sbt#L9-20)
[warn] +- products:products_2.11:1.0-SNAPSHOT
sbt.ResolveException: unresolved dependency: org.squeryl#squeryl;0.9.5-6: not found
这是我的build.sbt
name := """products"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
jdbc,
cache,
ws,
evolutions,
"org.squeryl" % "squeryl" % "0.9.5-6",
// "postgresql" % "postgresql" % "9.1-901-1.jdbc4",
"com.typesafe.play" %% "anorm" % "2.4.0",
"net.sf.barcode4j" % "barcode4j" % "2.0",
"org.scalatestplus.play" %% "scalatestplus-play" % "1.5.1" % Test
)
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases"
resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots"
resolvers += "Sonatype releases" at "http://oss.sonatype.org/content/repositories/releases"
resolvers += "webjars" at "http://webjars.github.com/m2"
routesGenerator := InjectedRoutesGenerator
我更改为 "org.squeryl" % "squeryl_2.9.0-1" % "0.9.4" 并且有效。