从2.2.1迁移到2.3.1时,为什么会出现未解析的依赖关系?

时间:2014-09-17 16:41:03

标签: playframework sbt

你好我试图将我的播放项目迁移到更新的版本,并且我已经生成了一些我无法修复的错误。我试图这样做,就像它在播放框架网站上显示从播放2.2.x迁移到播放2.3.x

[error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.play#play- 
java-jdbc_2.11;2.3.1: not found
[error] unresolved dependency: com.typesafe.play#play-java-ebean_2.11;2.3.1: not found
[error] unresolved dependency: com.typesafe.play#play-cache_2.11;2.3.1: not found
[error] unresolved dependency: com.typesafe#play-plugins-mailer_2.11;2.2.0: not found
[error] unresolved dependency: com.typesafe#play-plugins-util_2.11;2.2.0: not found
[error] Total time: 31 s, completed 2014-09-17 18:21:00
1. Waiting for source changes... (press enter to interrupt)

我的build.sbt看起来像:

name := "error"

version := "0.1.1"

scalaVersion := "2.11.1"

doc in Compile <<= target.map(_ / "none")

libraryDependencies ++= Seq(
  javaJdbc,
  javaEbean,
  cache
)
libraryDependencies += "mysql" % "mysql-connector-java" % "5.1.24"
libraryDependencies += "org.fusesource.scalate" % "scalate-core" % "1.5.3"
libraryDependencies += "net.sf.opencsv" % "opencsv" % "2.3"
libraryDependencies += "com.typesafe" %% "play-plugins-mailer" % "2.2.0"
libraryDependencies += "com.typesafe" %% "play-plugins-util" % "2.2.0"
libraryDependencies += "org.apache.thrift" % "libthrift" % "0.9.1"
libraryDependencies += "org.apache.httpcomponents" % "httpclient" % "4.2"
libraryDependencies += "org.apache.httpcomponents" % "httpcore" % "4.2"
libraryDependencies += "org.codehaus.jackson" % "jackson-core-asl" % "1.1.0"
libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.3.1"

我将非常感谢每一个帮助,因为我无法在任何地方找到解决方案。

在旧版本的游戏2.2.2中,我最后还在build.sbt中 play.Project.playJavaSettings 当我试图用最后一个游戏进行游戏时,一切都很完美.Project.playJavaSettings在开始运行时出错

/home/error/workspace/play-angular/build.sbt:35: error: object Project is not a   
member of package play
play.Project.playJavaSettings
     ^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q

1 个答案:

答案 0 :(得分:2)

我认为问题出在project/plugins.sbt,您错过了Typesafe Releases存储库(解析程序)。添加以下内容并重新开始。

resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

还有可用的快捷方式(如果你想去 geeky ):

resolvers += Resolver.typesafeRepo("releases")