javamavenintellij-ideajava-8

JDK version mismatch between Intellij project structure and Maven version


At project structure of Intellij, the JDK version is selected as 1.8

At Maven properties also, the JDK verison had been mention as 1.8

But still upon mvn --install somehow I get JDK verion as 11

Unable to understand the behaviour. And how do I make it as 1.8

Project screenshot

enter image description here


Solution

  • Try and change in Settings -> Build, Execution, Deployment -> Build Tools -> Maven -> Runner -> JRE to use JDK 8 or even better set the JAVA_HOME to the JDK 8