maven编译报错 -source 1.5 中不支持 lambda 表达式
Maven插件默认会加-source 1.5 -target 1.5参数编译
解决办法:
<project> [...] <build> [...] <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> [...] </build> [...] </project>