I. BACKGROUND
Recent projects when using MAVEN to install, found the teacher in console output warning:[WARNING] using platform encoding (UTF-8 actually) to copy filtered resources , i.e. build is platform dependent! Although it does not affect the normal operation of the project and install, but for Virgo I do not want to see the warning of the occurrence. So I studied it and found a solution, and now we share it with you.
Second, the way to solve
Add the following configuration to the pom.xml of the MAVEN project
1 <properties>2 <project.build.sourceencoding>utf-8</project.build.sourceencoding>3 </ Properties>
After the save we run again, found that the warning is missing, the heart of the happy to fly ~
Note: If our current MAVEN project is a subproject of another project, just add the configuration to the parent project and the subproject can inherit.
[WARNING] Using platform Encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!