Specify encoding for Maven projects View article history Edit article

Published: , Updated:
Talks about: , , , , and

Maven projects by default use the file encoding of the operating system. This can be problematic in case different operating systems with different encoding settings are used to build the project. Specify the encoding of your source code and resource files as in the following snippets to fix that problem.