无法将分支部署到 Heroku

Cannot deploy branch to Heroku

我正在尝试使用 Heroku 网站上的简单 git 部署方法手动将分支 mainmy repository 部署到 Heroku。但是,我得到以下日志:

-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/java
-----> App not compatible with buildpack: https://buildpack-> registry.s3.amazonaws.com/buildpacks/heroku/java.tgz
       Could not find a pom.xml file! Please check that it exists and is committed to Git.
       More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
 !     Push failed

无法理解为什么忽略pom.xml

pom.xml 文件应该位于项目的根目录中。 Heroku 发现这种方式激活(默认)对 Maven 的 Java 支持。

移动文件或 (better/easier) 避免使用 demo-site 文件夹(将 POM、src 等存储在根目录中)。