【发布时间】: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