lastSheep
lastSheep

Reputation: 445

Failed to execute goal... error. Deploying to Heroku

I am trying to deploy my application to Heroku, but I'm geting this message all the time. When I run it in IntelliJ the application is working. The application is written in Spring Boot.

What could be the cause of this error?

Error I recive when I try to push to Heroku

Here is my pom.xml

enter image description here

Upvotes: 0

Views: 172

Answers (1)

Ronij Pandey
Ronij Pandey

Reputation: 133

I think the problem is due to a mismatch of the Java version in your project's pom.xml file and that being used by Heroku.

A simple solution could be either specify your target version in pom.xml or configure the Java version in Heroku. You can add the following code below <description> in your pom.xml file to specify your target version.

    <properties>
        <java.version>1.8</java.version>
    </properties>

Upvotes: 1

Related Questions