解决maven打包编译出现File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent问题

maven打包编译时后台一直输出警告信息

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

 

 解决办法:pom.xml中增加属性即可解决

<properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

 

posted @ 2021-12-01 10:48  译林  阅读(1155)  评论(0编辑  收藏  举报