IJ error: java: error: release version 5 is not supported

IJ error: java: error: release version 5 is not supported

1. Modify pom.xml (my java version is 14.0.1):

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.0</version>
                <configuration>
                    <source>14.0.1</source>
                    <target>14.0.1</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

2. Modify the project configuration:
(1) Enter the project configuration:
Insert picture description here
(2) Ensure that the following three version numbers are consistent (also consistent with the pom.xml file)
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/ManWZD/article/details/109603919
Recommended