Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo compilation fails due to unmapple character set encoding UTF-8

Divya Arun November 28, 2011

We have configured a maven java project which creates a WAR on Bamboo.

When I generate WAR from Windows, it create WAR without any issues and build is successful.

On Linux, however, it fails compilation with an error message:

unmappable character for encoding UTF8

What is missing for linux to support UTF-8 character set?

Also, in my pom I have included

<properties>
		<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
		<gwtVersion>2.1.0</gwtVersion>
		<smartgwtVersion>2.4</smartgwtVersion>
</properties>

Can someone help? Should we include any command for maven while running on Bamboo?

2 answers

1 accepted

0 votes
Answer accepted
Divya Arun November 30, 2011

Use <encoding> tag for maven-compiler-plugin and it will compile the special characters.

0 votes
James Dumay
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 30, 2011

If you wish to set UTF-8 encoding in your Maven build you need to set the encoding to UTF-8 not ISO-8859-1 (Which is the "Latin 1" encoding).

For example:

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Divya Arun November 30, 2011

Hi,

I used ISO-8859-1 for maven-compiler-plugin in the <encoding> tag and it worked fine. Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events