在git中执行push命令时出错

时间:2018-01-23 17:48:23

标签: java heroku

使用指南https://www.youtube.com/watch?v=7RHYDNSRSOs我想将应用程序部署到Heroku。但是,git push heroku master会抛出错误:

    :compileJava NO-SOURCE
       :processResources NO-SOURCE
       :classes UP-TO-DATE
       :findMainClass
       :jar
       :bootRepackage FAILED

       FAILURE: Build failed with an exception.

       * What went wrong:
       Execution failed for task ':bootRepackage'.
       > Unable to find main class

       * Try:
       Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

       BUILD FAILED

       Total time: 15.555 secs
 !     ERROR: Failed to run Gradle!
       We're sorry this build is failing. If you can't find the issue in application
       code, please submit a ticket so we can help: https://help.heroku.com
       You can also try reverting to the previous version of the buildpack by running:
       $ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-gradle#previous-version

       Thanks,
       Heroku
 !     Push rejected, failed to compile Gradle app.
 !     Push failed

该项目通常在IntelliJ编译期间工作。他们没有问题。

0 个答案:

没有答案