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:

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

Comments

Information about Data protection