Maven: Force the build to fail on a PMD violation 

See https://github.com/markiewb/simpleMavenExampleForPmdIntegration

The most important part is the binding of the plugin to a Maven phase. 

Advertisements