maven: Invalid Target release: 11
I was not in the blog before the recording process of the bug and error, after listening to a senior programmer of video yesterday, decided to change the habit, recording some of the problems encountered in their usual
This is my mvn clean install
face, my pom configuration file is:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<java.version>11.0.4</java.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
Check the java runtime environment, IDEA in the compiler configuration, project configuration, no problem, JDK use are also 11.0.4. Above changed several times are being given
Later whim, the maven.compiler.source and maven.compiler.target tag to delete, and then just fine, equivalent to not artificially assigned. Also give you a idea of it