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

maven项目打包 编码gbk的不可映射字符

时间:2018-09-07 14:06:46      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:pid   uil   conf   com   compile   targe   org   config   artifact   

中文系统默认gbk编码格式,你的代码是utf8格式的。所以报错

<build>
    <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>6</source>
                    <target>6</target>
                    <encoding>utf8</encoding>
                </configuration>
            </plugin>
      </plugins>
</build>

 

maven项目打包 编码gbk的不可映射字符

标签:pid   uil   conf   com   compile   targe   org   config   artifact   

原文地址:https://www.cnblogs.com/zipon/p/9603662.html

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