OSX platform encoding in Maven

Posted by Jens Jäger on December 14, 2012

By default Maven uses the operating system platform encoding for the build. On OSX this is MacRoman. This leads to warnings that the build is platform dependent:

To fix this you just have to add the following profile to your ~/.m2/setting.xml:

The activate the utf8 profile with:

When you successfully added the profile you get this fancy info message in your maven builds:


Use this link to trackback from your own site.


Leave a response


Information about Data protection