19 Feb 2013

File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!

Problem: File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!

[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent

Cause: Encoding of the source files is not set.

Solution: Set the encoding of the source files.

pom.xml

<project> ... <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> ... </project>

3 comments:

Edwin Carlo Ribeiro Marinho said...

thank you! the post is very usefull and straight to the point.

Unknown said...

Thanks a ton. It worked for me!!

Unknown said...

for more users can find this link usefull. more on this