[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! code example

Example 1: File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!

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

Example 2: File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

Tags:

Misc Example