maven 设置jdk编译水平

在pom.xml添加:

  1. <build>
  2.   <plugins>
  3.     <plugin>
  4.       <groupId>org.apache.maven.plugins</groupId>
  5.       <artifactId>maven-compiler-plugin</artifactId>
  6.       <version>3.1</version>
  7.       <configuration>
  8.         <source>6</source>
  9.         <target>6</target>
  10.         <encoding>UTF-8</encoding>
  11.       </configuration>
  12.     </plugin>
  13.   </plugins>
  14. </build>

 

No Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

粤ICP备15062915号-1