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

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


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

2 answers

1 accepted

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

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:



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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,498 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you