Why no release?
Helpful links: https://stackoverflow.com/questions/52788743/intellij-error-java-release-version-10-not-supported/54963753
Add this to pom.xml
<properties>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
</properties>