Project Documentation

Maven Projects

ASF

Target JDK

There is a configuration element in the PMD plugin that let you set which target JDK to use. Often you want this to be in sync with the configuration for maven-compiler-plugin. The best practice for this is to set up a property and use that in the configuration section for each of the plugins. Here is an example on how to set that up: