gpt4 book ai didi

heroku - 将基于Play 2.1-SNAPSHOT的应用程序部署到Heroku

转载 作者:行者123 更新时间:2023-12-04 13:28:27 25 4
gpt4 key购买 nike

我有一个基于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”已 checkin 我的GIT存储库。看起来好像Heroku上的SBT正在本地存储库中查找,因为在出​​现“ Unresolved 依赖关系”错误之前,我看到以下警告:

   [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”成功完成。

最佳答案

如果您不希望使用本地文件存储库,则可以选择将Typesafe ivy-snapshots存储库添加为插件解析器。

在project/plugins.sbt中:

resolvers += Resolver.url("Typesafe Ivy Snapshots", url("http://repo.typesafe.com/typesafe/ivy-snapshots/"))(Resolver.ivyStylePatterns)

关于heroku - 将基于Play 2.1-SNAPSHOT的应用程序部署到Heroku,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10628520/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com