Skip to content

Commit

Permalink
Explicitly set encoding to UTF-8 for Maven modules
Browse files Browse the repository at this point in the history
It seems that it is not enough to set encoding on the root POM,
as Maven 3 complains that encoding is not set for the submodules.

Signed-off-by: Ealden Esto E. Escanan <ealden@gmail.com>
  • Loading branch information
ealden committed Sep 18, 2011
1 parent 50ebb00 commit 9c5e04b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions helloworld/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<maven.test.failure.ignore>true</maven.test.failure.ignore>
<spring.framework.version>3.0.5.RELEASE</spring.framework.version>
<spring.amqp.version>1.0.0.RELEASE</spring.amqp.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<profiles>
<profile>
Expand All @@ -39,7 +40,7 @@
<groupId>org.springframework.amqp</groupId>
<artifactId>spring-rabbit</artifactId>
<version>${spring.amqp.version}</version>
</dependency>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
Expand Down Expand Up @@ -70,15 +71,15 @@
<version>2.2</version>
<scope>runtime</scope>
</dependency>


<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand All @@ -102,7 +103,7 @@
<version>1.2.14</version>
<scope>runtime</scope>
</dependency>

</dependencies>

<build>
Expand Down
2 changes: 1 addition & 1 deletion log4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<maven.test.failure.ignore>true</maven.test.failure.ignore>
<spring.framework.version>3.0.5.RELEASE</spring.framework.version>
<spring.amqp.version>1.0.0.RELEASE</spring.amqp.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<profiles>
<profile>
Expand Down Expand Up @@ -208,4 +209,3 @@
</distributionManagement>

</project>

1 change: 1 addition & 0 deletions stocks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<maven.test.failure.ignore>true</maven.test.failure.ignore>
<spring.framework.version>3.0.5.RELEASE</spring.framework.version>
<spring.amqp.version>1.0.0.RELEASE</spring.amqp.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<profiles>
<profile>
Expand Down

0 comments on commit 9c5e04b

Please sign in to comment.