【问题标题】:Sbt:ResolvedException - Unresolved dependency PlayFramework 2.3.6Sbt:ResolvedException - 未解决的依赖 PlayFramework 2.3.6
【发布时间】:2015-01-17 03:37:52
【问题描述】:

我正在从 play 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

【问题讨论】:

    标签: playframework playframework-2.1 playframework-2.3 typesafe-activator typesafe


    【解决方案1】:

    您的 play-plugins-mailer 插件使用的是 2.1.0 版本,该版本不是为 Scala 2.11 构建的。最新版本是为 2.11 构建的,所以你应该升级:

    "com.typesafe.play.plugins" %% "play-plugins-mailer" % "2.3.1"
    

    【讨论】:

      猜你喜欢
      • 2016-01-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-08
      • 2012-11-26
      • 2017-05-20
      • 2017-10-29
      • 2014-12-17
      相关资源
      最近更新 更多