2

私はplayframeworkを使用しており、Build.scalaのappDependenciesは次のとおりです。

  val appDependencies = Seq(
// Add your project dependencies here,
jdbc,
anorm,
"com.rabbitmq" % "amqp-client" % "3.0.1",
"com.typesafe.akka" %% "akka-agent" % "2.1.0",
"org.mongodb" %% "casbah" % "2.5.0",
"com.novus" % "salat_2.9.1" % "1.9.1",
"se.radley" % "play-plugins-salat_2.9.1" % "1.1"

)。

scala 2.10にはsalatおよびplay-salatプラグインがないため、scalaのバージョンを明示的に指定します。ただし、効果はありません。

[info] Updating {file:/home/johndoe/projects/myproject/}myproject...
[warn]  module not found: com.novus#salat_2.10;1.9.1                              
[warn] ==== local: tried
[warn]   /home/johndoe/projects/lib/play/repository/local/com.novus/salat_2.10/1.9.1/ivys/ivy.xml
[warn] ==== Typesafe Releases Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/com/novus/salat_2.10/1.9.1/salat_2.10-1.9.1.pom
[warn] ==== Typesafe Snapshots Repository: tried
[warn]   http://repo.typesafe.com/typesafe/snapshots/com/novus/salat_2.10/1.9.1/salat_2.10-1.9.1.pom
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/novus/salat_2.10/1.9.1/salat_2.10-1.9.1.pom
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::                       
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.novus#salat_2.10;1.9.1: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] (*:update) sbt.ResolveException: unresolved dependency: com.novus#salat_2.10;1.9.1: not found
[warn] some of the dependencies were not recompiled properly, so classloader is not avaialable
[info] Updating {file:/home/johndoe/projects/myproject/}myproject...
[warn]  module not found: com.novus#salat_2.10;1.9.1                              
[warn] ==== local: tried
[warn]   /home/johndoe/projects/lib/play/repository/local/com.novus/salat_2.10/1.9.1/ivys/ivy.xml
[warn] ==== Typesafe Releases Repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/com/novus/salat_2.10/1.9.1/salat_2.10-1.9.1.pom
[warn] ==== Typesafe Snapshots Repository: tried
[warn]   http://repo.typesafe.com/typesafe/snapshots/com/novus/salat_2.10/1.9.1/salat_2.10-1.9.1.pom
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/com/novus/salat_2.10/1.9.1/salat_2.10-1.9.1.pom
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::                       
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.novus#salat_2.10;1.9.1: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] (*:update) sbt.ResolveException: unresolved dependency: com.novus#salat_2.10;1.9.1: not found

私は何が欠けていますか?

4

2 に答える 2

0

Salat 1.9.2-SNAPSHOT は 2.10 で利用できます。

于 2013-01-28T18:38:31.943 に答える
0

私の無知を認めさせてください: その理由は、playBuild.scala を変更するたびにコマンドを実行できなかったからです。私が試した唯一のことはrun、何度も何度も。

于 2013-02-02T15:02:29.000 に答える