maven 打包时关于编码的WARNING

来源:互联网 发布:mac右键菜单设置 编辑:程序博客网 时间:2024/05/17 21:40

[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!


这是我在Maven编译时运行出现的问题


改property里面的GBK不行


<groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.5.1</version>
            <configuration>
            <encoding>utf-8</encoding>
                <source>1.7</source>
                <target>1.7</target>
            </configuration>


在tomcat配置时更改编码也不行




<properties>
    <kotlin.version>1.1.2</kotlin.version>
    <!-- 解决打包时的编码问题 -->
    <project.build.sourceEncoding>
          UTF-8
    </project.build.sourceEncoding>
  </properties>

最后在自己的properties里面更改就没有报错了







原创粉丝点击