Jireh程序猿的那些事 Jireh程序猿的那些事

记录分享生活、程序、信息的精彩人生

目录
Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
/      

Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

Maven项目编译的时候报了告警,抱着有强迫症的精神,解决这个告警

Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

解决方案

在项目根目录pom.xml文件中的properties标签下面加入<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

示例:

<properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

如果觉得这篇文章不错的话,请我喝一杯 咖啡☕吧
标题:Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
作者:Jireh
地址:https://jireh.xyz/articles/2020/12/11/1607653217353.html
本作品由 Jireh 采用 署名 – 非商业性使用 – 禁止演绎 4.0 国际许可协议进行许可,转载请注明出处。