In IntelliJ, I\'m getting this strange error message when I try to build from the build menu
Error: java: release version 10 not supported
I had similar issue except that the error was "release version 5 not supported. " I tried all of the above and other proposed solutions but nothing worked, except putting following xml into the pom.xml file:
11
org.apache.maven.plugins
maven-compiler-plugin
3.8.1
Code comes from: https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
After putting this code in pom.xml, make sure to Import Changes or Enable Auto-Import for the Maven project: