码迷,mamicode.com
首页 > 其他好文 > 详细

12) maven-compiler-plugin

时间:2016-08-02 23:44:39      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:

The Compiler Plugin is used to compile the sources of your project. 

At present the default source setting is 1.5 and the default target setting is 1.5, independently of the JDK you run Maven with. 

Change these defaults:

<project>
  [...]
  <build>
    [...]
    <plugins>
      <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>
        </configuration>
      </plugin>
    </plugins>
    [...]
  </build>
  [...]
</project>

 

12) maven-compiler-plugin

标签:

原文地址:http://www.cnblogs.com/zno2/p/4583178.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!