idea maven project module is always automatically changed to Language Level 5

Question is as follows:

solve

Inside the following was added in pom.xml

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

Guess you like

Origin blog.csdn.net/sndayYU/article/details/90676909