mvn默认的编码是iso-8859-1,生成中文站点会遇到乱码,我通过以下方案解决了此问题。
文件的编码设置为:UTF-8
plugin做如下设置:
<plugin>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<locales>en,zh</locales>
<inputEncoding>UTF-8</inputEncoding>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
</plugin>
其他配置参考:
http://maven.apache.org/plugins/maven-site-plugin/
=========================================
Korben
MSN: cn_baiyun@hotmail.com QQ: 553573836
=========================================
2007-06-14
Mvn site 的编码问题
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment