maven-compiler-plugin插件-JDK版本和编码
2016-01-06 17:06
549 查看
方案一
[html] view
plaincopy
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<source>1.6</source>
<target>1.6</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
方案二、
[html] view
plaincopy
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<encoding>UTF-8</encoding>
<source>1.6</source>
<target>1.6</target>
</configuration>
[html] view
plaincopy
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<source>1.6</source>
<target>1.6</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
方案二、
[html] view
plaincopy
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<encoding>UTF-8</encoding>
<source>1.6</source>
<target>1.6</target>
</configuration>
相关文章推荐
- 【第四章】 资源 之 4.3 访问Resource ——跟我学spring3
- Spring整合Structs2 的web.xml 基本配置
- Java——Java重写和重载
- javasript 计算两个日期相差天数
- Ehcache整合springmvc 个人总结
- struts1标签(html:text)
- 【转】Java对日期Date类进行加减运算,年份加减,月份加减
- java readLine()
- ubuntu部署eclipse兼容性问题
- java中的抽象类和接口区别于联系
- 解决eclipse资源文件名称不能含有特殊字符跟大写字母的问题
- java中 裁判打分 得出平均分,最高分和最低分
- java中反射机制的演示
- [javase学习笔记]-8.7 静态代码块
- java 中泛型的使用
- This project contains java compilation errors
- java中ArrayList的使用
- myeclipse+spket提示extjs
- Java实现验证码具体代码(图片、汉字)
- Java EE V7.0学习笔记-Wildfly V9.0服务器环境的学习