The Maven team is pleased to announce the release of the Maven PMD Plugin, version 2.7.1
A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste
as well as being able to fail the build based on these metrics.
You should specify the version in your project's plugin configuration:
Release Notes - Maven PMD Plugin - Version 2.7.1
* [MPMD-142] PMD Report for maven site fails with ClassCastException
-The Maven team