Add PMD to the build.

Reviewed at https://reviews.apache.org/r/21754/