1
resposta

Falha ao Realizar deploy no Heroku

Parece que não está encontrando o pom.xml. Eu fiz todas as configurações apresentadas no video.

Segue passo a passo do terminal e sua respectiva mensagem:

MacBook-Pro-de-Anderson:casadocodigo anderson$ git push heroku master
Counting objects: 720, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (406/406), done.
Writing objects: 100% (720/720), 416.38 KiB | 0 bytes/s, done.
Total 720 (delta 236), reused 320 (delta 103)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> App not compatible with buildpack: https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/java.tgz
remote:        Could not find a pom.xml file! Please check that it exists and is committed to Git.
remote: 
remote:        More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !    Push rejected to cdcnog.
remote: 
To https://git.heroku.com/cdcnog.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/cdcnog.git'
1 resposta

Oi Anderson,

só para garantir, ao executar:

git ls-tree --full-tree -r HEAD

aparece o pom.xml na raiz do projeto, correto?

abs