maven 设置jdk编译水平
在pom.xml添加:
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.pluginsgroupId>
- <artifactId>maven-compiler-pluginartifactId>
-
3.1 - <configuration>
- <source>6source>
- <target>6target>
- <encoding>UTF-8encoding>
- configuration>
- plugin>
- plugins>
- build>