我正在从播放2.1更新到2.3
除插件电子邮件外,一切正常,请参阅下面的错误控制台。无法为scala版本2.11.1
下载插件play-plugins-mailer请告知如何解决这个问题
"com.typesafe" %% "play-plugins-mailer" % "2.1.0"
info] Resolving com.typesafe#play-plugins-mailer_2.11;2.1.0 ...
[warn] ==== Typesafe Repo: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/play-plugins-mailer_2.11/2.1.0/play-plugins-mailer_2.11-2.1.0.pom
[info] Resolving jline#jline;2.11 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe#play-plugins-mailer_2.11;2.1.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe#play-plugins-mailer_2.11;2.1.0: not found
[error] Total time: 14 s, completed Nov 19, 2014 5:04:00 PM
SBT file below
name := """Codi"""
version := "1.0-SNAPSHOT"
resolvers += "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/"
lazy val root = (project in file(".")).enablePlugins(PlayJava)
scalaVersion := "2.11.1"
libraryDependencies ++= Seq(
"mysql" % "mysql-connector-java" % "5.1.18",
"org.json" % "json" % "20131018",
"com.google.code.gson" % "gson" % "1.7.1",
"org.apache.directory.studio" % "org.apache.commons.io" % "2.4",
"org.codehaus.jackson" % "jackson-mapper-asl" % "1.7.7",
"commons-codec" % "commons-codec" % "1.5",
"com.typesafe" %% "play-plugins-mailer" % "2.1.0",
"com.typesafe.play.plugins" %% "play-plugins-util" % "2.3.0",
"org.apache.commons" % "commons-email" % "1.3.2",
javaCore,
javaJdbc,
javaEbean,
cache,
javaWs
)
Your help is highly appreciated.
Seroney
答案 0 :(得分:3)
您的play-plugins-mailer
插件使用的是版本2.1.0,它不是为Scala 2.11构建的。最新版本是为2.11构建的,因此您应升级:
"com.typesafe.play.plugins" %% "play-plugins-mailer" % "2.3.1"