Friday, March 06, 2015

When programming in Java and using Apache Maven, you might get the following warning, which does no harm but clutters up the output;

[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

The solution is to add the desired platform encoding in your pom.xml file by adding it to 'project.build.sourceEncoding' section of the properties (if you don't have properties, you will need to add them first).