我有一个基于Play 2.1-SNAPSHOT的应用程序,在本地运行良好,但是当我尝试部署到Heroku时,出现以下错误:
[warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: play#sbt-plugin;2.1-SNAPSHOT: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] [warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested
attributes.
我的plugins.sbt文件指向一个包含2.1-SNAPSHOT依赖项的本地存储库:
resolvers ++= Seq(
"Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/",
Resolver.file("My Repository", file( "repository/local") )
)
// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.1-SNAPSHOT")
目录“repository/local”已经被提交到我的GIT存储库中。看起来在Heroku上的SBT正在查找本地存储库,因为在“未解决的依赖项”错误之前,我看到以下警告:
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/play/sbt-plugin_2.9.1_0.11.2/2.1-SNAPSHOT/sbt-plugin-2.1-SNAPSHOT.pom
[warn] ==== My Repository: tried
[warn] ==== heroku-sbt-typesafe: tried
[warn] ==== heroku-central: tried
在本地运行"play stage"命令成功完成。