[Maven]File encoding has not been set, using platform encoding GBK

编译字符编码警告

问题

运行 mvn compile
控制台输出

[WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent!

处理方法

pom.xml 文件中添加 properties 标签


  ...
  
    UTF-8
  
  ...


你可能感兴趣的:([Maven]File encoding has not been set, using platform encoding GBK)