Specify source file encoding as UTF-8

This setting specifies how build plugins and IDEs should treat files
in the project. If it is not specified, then the editor default for
file creation and editing, and the build system default for analyzing
content, defaults to the default encoding of the current system. The
setting is necessary to ensure that the project behaves the same way
across all operating systems and locales.

Change-Id: Ic3dd1d4bb6a54ab7da87d12db11490343617a9ed
This commit is contained in:
Sam Harwell 2013-11-26 10:24:23 -06:00
parent 5d96b426e8
commit 9e086059a3
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@ -13,6 +14,10 @@
<!-- USE "mvn clean generate-sources" to run this POM -->
<!-- ################################################ -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@ -13,6 +14,10 @@
<!-- USE "mvn clean generate-sources" to run this POM -->
<!-- ################################################ -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>