Maven 学习
使用Apache的编译插件Apache Maven Compiler Plugin,并设置java编译器版本:
<properties> <java.version>9</java.version> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> </configuration> </plugin> </plugins> </build>