Like recommended on:
https://maven.apache.org/plugins/maven-pmd-plugin/examples/targetJdk.html
<properties>
+ <encoding>UTF-8</encoding>
+ <maven.compiler.source>1.7</maven.compiler.source>
+ <maven.compiler.target>1.7</maven.compiler.target>
+
<!-- character encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
- <source>1.7</source>
- <target>1.7</target>
- <encoding>utf8</encoding>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<version>3.5</version>
<configuration>
<linkXref>true</linkXref>
- <targetJdk>1.5</targetJdk>
</configuration>
</plugin>
</plugins>