Recently I set up a development environment on Ubuntu10 and there was a problem with my maven build. Because most existing source code generated from windows and I had an encoding mapping error when building my project in Ubuntu.
To solve it just simply add a property into root pom file.
<properties>
<project.build.sourceEncoding>iso-8859-1</project.build.sourceEncoding>
<project.reporting.outputEncoding>iso-8859-1</project.reporting.outputEncoding>
</properties>
Maven Document
No comments:
Post a Comment