Maven compiled source code specifies the JDK version

<build> <plugins> <!-- Specify jdk to prevent update project --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> <!-- Item Code --> <encoding>UTF-8</encoding> </configuration> </plugin> </build>