1. 程式人生 > >maven工程中警告[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

maven工程中警告[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!

文件 prop 源文件 使用 end 默認 .so utf-8 source

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

[警告]使用時平臺編碼格式(GBK actually)進行解析的文件資源,也就是說,構建是依賴於平臺的!

錯誤原因:一些源文件的編碼格式並不是工具平臺的默認的解析格式,二者有沖突,所以報錯

解決方法:在maven工程中的父工程POM中加入以下代碼“

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

再次安裝時就不會報錯。

maven工程中警告[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!