maven 设置Jdk 版本编译

pom.xml

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
          <!--<compilerArgs>-->
            <!--<arg>-Xlint:unchecked</arg>-->
            <!--<arg>-Xlint:deprecation </arg>-->
          <!--</compilerArgs>-->
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>

猜你喜欢

转载自gangling.iteye.com/blog/2382235