我有一個運行在本地罰款播放2.1快照基於應用程序,但是當我嘗試部署到Heroku的我得到以下錯誤:部署Play根據2.1快照應用程序的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快照依賴本地資源庫:
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")
目錄「資源庫/本地」簽入我的Git倉庫。它看起來像自「未解決的依賴」的錯誤,我看到下面的警告之前SBT在Heroku是尋找本地資源庫中:
[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
運行命令「遊戲臺」局部成功完成。
我認爲另一種方法是添加CloudBees CI快照回購,而不是使用本地文件回購。 –