Deploy Heroku Error - Java

Asked

Viewed 32 times

0

I’m starting a project for a Java application, and I’m setting up the environments before starting the implementation. However, when I went to create the Heroku app and Deploy through the project repository in my GIT, this error appears:

inserir a descrição da imagem aqui

From what I understand, you did not find my pom.xml file in my project, but it was created: inserir a descrição da imagem aqui

I’m looking for some solutions, but I haven’t found anything yet.

  • Could you please put the entire directory structure of your project on the server? Anyway I’ll send a solution for some cases I’ve seen.

1 answer

0


In some cases, the problem is that the diretório git is an external directory and the project folder (with code itself and containing the pom.xml) is inside that same directory git "root".

Example:

- diretorioGit
  |___diretorioDoProjeto
           |____codigo...
           |____pom.xml

That’s one of the kinds of problems I’ve seen happen. But to confirm if this is your case, we need to see the directory structure of your project, as I requested in the comment in the question.

The solution to this case could be to move the directory .git and the file .gitignore to the directory diretorioDoProjeto.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.