<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin>
父pom.xml中添加
原文:https://www.cnblogs.com/Wave1/p/10389160.html