如何在Heroku中将Java组件添加到django应用项目中?

我正在为我的工作构建一个django应用程序,以提取一些pdf信息,显然可以在virt环境中完美运行,但是,当部署到heroku时,我遇到了一些Java插件问题,我为heroku / java添加了buildpack,能够使用我在Google中找到的pom.xml文件,但是现在出现了此错误:下一步不需要任何想法了。

remote:        [INFO] Packaging webapp
remote:        [INFO] Assembling webapp [application-mvc] in 
[/tmp/build_6ef3792faeda2226e0eed7f586b0857f/target/ApplicationName]
remote:        [INFO] Processing war project
remote:        [INFO] Webapp assembled in [59 msecs]
remote:        [INFO] Building war: 
/tmp/build_6ef3792faeda2226e0eed7f586b0857f/target/ApplicationName.war
remote:        [INFO] ------------------------------------------------------------------------
remote:        [INFO] BUILD FAILURE
remote:        [INFO] ------------------------------------------------------------------------
remote:        [INFO] Total time:  8.912 s
remote:        [INFO] Finished at: 2019-11-25T22:31:19Z
remote:        [INFO] ------------------------------------------------------------------------
remote:        [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project application-mvc: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [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/MojoExecutionException
 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.
henghbing 回答:如何在Heroku中将Java组件添加到django应用项目中?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3032796.html

大家都在问