This isn’t much publicized, but encoding issues can bite you in the butt, especially when switching platforms.  There’s an easy way to eliminate 95% of all encoding hassles,  though — just add a single property:


<properties>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

to your pom, or parent pom.  Voila!  You're set for life.