The current CPD documentation covers very well how to use it, but there was no information here that describes why someone would care about how much duplicate code they have. The developers I work with want to "cheat" on their SonarQube quality gates by excluding some code from CPD checks, because they don't really understand what the problem is. Ironically, the main risk from duplicate code is when that code unintentionally becomes not duplicate anymore, creating a hidden problem that may or may not erupt on you. The text I've added here is excerpted from a short tech note I wrote to my team on the subject.
PMD-New-Site
New Site For PMD Core Open Source Project
Site Theme
This site was built using the tomjohnson1492/documentation-theme-jekyll theme
A Jekyll-based theme designed for documentation and help systems. See the link for detailed instructions on setting up and configuring everything. http://idratherbewriting.com/documentation-theme-jekyll/
Building using Bundler
bundle install # once
bundle exec jekyll serve
Go to: http://localhost:4005/
Building using Docker
docker build --no-cache -t pmd-doc . # once
docker run --rm=true -v "$PWD:/src" -p 4005:4005 pmd-doc serve -H 0.0.0.0
Go to: http://localhost:4005/