I am trying to compile my project with Java 11.
When I try to run the application with Java 8 as the Java version in pom.xml, it works fine. But when I try to run it
Experiencing this issue while trying to deploy Spring Boot application to Heroku.
My JAVA_HOME was set correctly but was still receiving same error.
But then this worked for me:
In your pom.xml add or adapt to your own context:
org.apache.maven.plugins maven-compiler-plugin 1.8 1.8