A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics.
Homepage POM file JAR file Javadoc'org.apache.maven.plugins:maven-pmd-plugin:2.3'