我正在尝试在Heroko上部署Vadding应用程序,但是Heroku在默认情况下无法识别Javafx。添加以下行:
$ heroku buildpacks:添加https://github.com/jkutner/heroku-buildpack-javafx
在我的代码中允许它在heroku上成功编译,尽管我不确定在哪里添加它以便正确引用。起初我以为它将属于我的POM文件,但是从语法上讲这没有意义。
在heroku之外,应用程序编译时没有错误或警告。
[ERROR] symbol: method launch()
[ERROR] location: class com.vaadin.app.GenerateChart
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
!错误:无法使用Maven构建应用
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/
!推送被拒绝,无法编译Java应用。
!推送失败
答案 0 :(得分:0)
就这样回答,这需要从git bash(在同步回购之后)或Heroku的CLI中完成。