简体   繁体   中英

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

在此处输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM