Error: java does not support release version 5 this error, [ERROR] no longer supports source option 1.5. Please use 1.6 or higher version solution

Intellij idea began to report an error: Error: java does not support release version 5. This error can be solved according to the following method;

https://blog.csdn.net/qq_22076345/article/details/82392236

But then I got this error again

Just add the following code in pom.xml, because my version is 9, you can modify it according to your own version

 <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
        <java.version>9</java.version>
        <maven.compiler.source>9</maven.compiler.source>
        <maven.compiler.target>9</maven.compiler.target>
    </properties>

 

Guess you like

Origin blog.csdn.net/qq_34159161/article/details/107130326