I wanted to deploy my java 7 application to Heroku
but I encountered some problems with java version.
I added system.properties
file in my project root directory (where src
and pom.xml
are) with content java.runtime.version=1.7
but still I am getting something like this:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project lets-code: Fatal error compiling: invalid target release: 1.7
so I am a bit confused as to what to do next.