0

Upon pushing a spring boot maven project to a Heroku repository, I get the following error:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project userservice: Fatal error compiling: invalid target release: 17

I have created a system.properties file in the root directory of my spring boot app and added java.runtime.version=17 to it but still no luck.

I have a similar issue than this and this question and followed the solutions but it did not work for me.

chandler
  • 71
  • 3
  • 9

0 Answers0