Home > database >  hello, I can't upload my project to heroku, it says I don't have a file pom.xml but I have
hello, I can't upload my project to heroku, it says I don't have a file pom.xml but I have

Time:04-15

I get this error

-----> 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

But I have pom.xml in my project https://github.com/Nurba1713/e-book.git

Maybe this is a very stupid question, I apologize in advance, I am a beginner and self-taught.

CodePudding user response:

The POM file must be in the root of the repository, see Heroku Java guide

  • Related