Answer the question
In order to leave comments, you need to log in
Why does Intellij Idea use a different version of Java than the one in Maven?
There is a project with Maven, in pom.xml it is written to use version 8 of Java (everything was done according to the instructions in the documentation ):
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
"C:\Program Files\AdoptOpenJDK\jdk-11.0.11.9-hotspot\bin\java.exe"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question