gpt4 book ai didi

Java Play 2 - 编译错误 -> Heroku

转载 作者:行者123 更新时间:2023-11-30 09:34:05 26 4
gpt4 key购买 nike

我正在尝试将我的应用程序部署到 heroku,但我总是收到相同的错误消息,而且我不知道如何修复它。

我进行了一些谷歌搜索,但没有成功。我还尝试更改 sbt 的版本。它也可以完美地运行

play run

我正在使用 Play 2.0.2。

有什么解决办法吗?

[info] Loading project definition from /tmp/build
[warn] module not found: play#sbt-plugin;2.0
[warn] ==== typesafe-ivy-releases: tried
[warn] http://repo.typesafe.com/typesafe/ivy-re
.9.1/sbt_0.11.3/2.0/ivys/ivy.xml
[warn] ==== local: tried
[warn] /tmp/build_2gxtp2n2ct352/.sbt_home/.ivy2
.9.1/sbt_0.11.3/2.0/ivys/ivy.xml
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releas
3/2.0/sbt-plugin-2.0.pom
[warn] ==== heroku-sbt-typesafe: tried
[warn] ==== heroku-central: tried
[warn] http://s3pository.heroku.com/maven-centr
3/2.0/sbt-plugin-2.0.pom
[warn] ==== typesafe: tried
[warn] http://repo.typesafe.com/typesafe/repo/p
0/sbt-plugin-2.0.pom
[warn] ==== heroku-sbt-typesafe: tried
[warn] ==== heroku-central: tried
[warn] http://s3pository.heroku.com/maven-centr
3/2.0/sbt-plugin-2.0.pom
[warn] ==== typesafe: tried
[warn] http://repo.typesafe.com/typesafe/repo/p
0/sbt-plugin-2.0.pom
[warn] ::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES
[warn] ::::::::::::::::::::::::::::::::::::::::
[warn] :: play#sbt-plugin;2.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have
these dependencies exist with the requested attrib
[warn] play:sbt-plugin:2.0 (sbtVersion=

[warn]
[error] {file:/tmp/build_2gxtp2n2ct352/project/}d
solveException: unresolved dependency: play#sbt-pl
Project loading failed: (r)etry, (q)uit, (l)ast,
build app with sbt
Heroku push rejected, failed to compile Play 2.0

@heroku.com:pure-chamber-6292.git
mote rejected] master -> master (pre-receive hook
failed to push some refs to 'git@heroku.com:pure-

最佳答案

看起来sbt-plugin 的版本号是错误的。确保你的 project/plugins.sbt 文件包含:

// Comment to get more information during initialization
logLevel := Level.Warn

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

// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.0.2")

关于Java Play 2 - 编译错误 -> Heroku,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11906682/

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