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
putting below code in pom.xml works.
11