1

I am really new to this. I am trying to push my GitHub code to Heroku for a discord bot. When I push my code to Heroku, I get the error saying [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project : Fatal error compiling: invalid flag: --release -> [Help 1] I am on Java 14.0.2

This is my pom.xml and you can see the external library on left.

My preferences are all set to 14.

My project structure

My maven runner

I have also deleted my .m2/repository. I am sorry if this has been posted before or if this is really dumb. Thank You in Advance if anyone replies.

ßuddhα
  • 11
  • 2
  • First no images better use text...(copy & past)...second there does not exist a release `14.0.2` only `14`.... – khmarbaise May 08 '21 at 18:50
  • I added 14 and when I do mvn clean compile it says build is successful. I updated my post. Please check it out. and thank you for that I really appreciate it man. – ßuddhα May 08 '21 at 19:28

0 Answers0