Reputation: 445
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?
Here is my pom.xml
Upvotes: 0
Views: 172
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