Using platform encoding GBK actually to copy filtered reso

Posted skiwndhed

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Using platform encoding GBK actually to copy filtered reso相关的知识,希望对你有一定的参考价值。

执行Maven Install打包的时候,提示以下警告信息:
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

解决方法:
打开项目属性》Resources,按下图修改。
技术图片

保存后重新执行Maven Install 发现警告依然存在,原来是理解错误错误了,应该修改Maven的配置文件中关于编码的配置<encoding>utf-8</encoding>
完整示例:

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.0</version>
                <configuration>
                    <encoding>utf-8</encoding>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

还是存在警告,原来是需要在<project>中添加<properties>标签:

<properties>
         <project.build.sourceEncoding>
             UTF-8
         </project.build.sourceEncoding>
</properties>
  • 1
  • 2
  • 3
  • 4
  • 5

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!http://www.captainbed.net

以上是关于Using platform encoding GBK actually to copy filtered reso的主要内容,如果未能解决你的问题,请参考以下文章

maven项目警告: Using platform encoding (UTF-8 actually) to copy filtered resources

Using platform encoding GBK actually to copy filtered reso

MAVEN Error: Using platform encoding (GBK actually) to copy filtered resources.....

Maven install [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources

解决Maven工程install时[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources

[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platfor