【问题标题】:upload JDA discord bot to heroku将 JDA discord bot 上传到 heroku
【发布时间】:2020-09-27 22:02:57
【问题描述】:

您好,我正在尝试将我的 JDA discord 机器人上传到 heroku,但是当我尝试将其推送到 heroku 时,我收到了这个错误:

remote:        [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
remote:        [INFO] Compiling 20 source files to /tmp/build_b5079e7584c21a569003e4d9347d90d0/target/classes
remote:        [INFO] -------------------------------------------------------------
remote:        [ERROR] COMPILATION ERROR :
remote:        [INFO] -------------------------------------------------------------
remote:        [ERROR] /tmp/build_b5079e7584c21a569003e4d9347d90d0/src/net/OFFWORLDMC/Musik/MusikController.java:[18,39] cannot find symbol
remote:          symbol:   variable volume
remote:          location: class net.OFFWORLDMC.Musik.MusikController
remote:        [INFO] 1 error
remote:        [INFO] -------------------------------------------------------------
remote:        [INFO] ------------------------------------------------------------------------
remote:        [INFO] BUILD FAILURE
remote:        [INFO] ------------------------------------------------------------------------
remote:        [INFO] Total time:  31.677 s
remote:        [INFO] Finished at: 2020-06-08T20:07:06Z
remote:        [INFO] ------------------------------------------------------------------------
remote:        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project OffWorldMc: Compilation failure
remote:        [ERROR] /tmp/build_b5079e7584c21a569003e4d9347d90d0/src/net/OFFWORLDMC/Musik/MusikController.java:[18,39] cannot find symbol
remote:        [ERROR]   symbol:   variable volume
remote:        [ERROR]   location: class net.OFFWORLDMC.Musik.MusikController
remote:        [ERROR] -> [Help 1]
remote:        [ERROR]
remote:        [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
remote:        [ERROR] Re-run Maven using the -X switch to enable full debug logging.
remote:        [ERROR]
remote:        [ERROR] For more information about the errors and possible solutions, please read the following articles:
remote:        [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
remote:
remote:  !     ERROR: Failed to build app with Maven
remote:        We're sorry this build is failing! If you can't find the issue in application code,
remote:        please submit a ticket so we can help: https://help.heroku.com/
remote:
remote:  !     Push rejected, failed to compile Java app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to offworldmc.
remote:
To https://git.heroku.com/offworldmc.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/offworldmc.git'

我没有在我的目录中创建任何新文件 请帮我 感谢您的每一个回答

【问题讨论】:

  • 现在构建已开发到heroku,但我的状态是离线

标签: java git maven heroku discord


【解决方案1】:

MusikController.java:[18,39] cannot find symbol,MusikController.java第18行有个符号找不到。

可能的修复:[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! 如消息所述,构建依赖于平台。这可能适用于您的 PC,但默认平台编码 UTF-8 不能用于读取我之前在服务器上提到的特定符号。

【讨论】:

  • 现在构建已开发到heroku,但我的状态是离线
猜你喜欢
  • 1970-01-01
  • 2023-01-05
  • 2020-11-15
  • 2018-09-26
  • 2022-01-22
  • 2021-07-06
  • 2023-01-12
  • 2020-05-13
  • 2020-05-11
相关资源
最近更新 更多