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: I5a0b78dce03b7503451064bda7453a7def156e88
This commit is contained in:
Sam Harwell 2013-11-26 09:28:42 -06:00
parent a1b962d97a
commit c4324f1790
3 changed files with 6 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">
@ -8,6 +9,9 @@
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<modules>
<module>v1.0</module>
<module>v2.0</module>

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">

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">