I know there is an option to ignoreAnnotations in the CPD CLI reference guide but I can't seem to get this to work using maven pmd:cpd plugin. When I view the mvn pmd page it doesn't list 'ignoreAnnotations' as a usable parameter but seems like it should support if can do through CLI no??
I tried in pom like this
<configuration>
<ignoreAnnotations>true</ignoreAnnotations>
</configuration>
Thanks
Update, 2019:
maven-pmd-plugin
version 3.11.0 added theignoreAnnotations
configuration option.See plugin documentation: http://maven.apache.org/plugins/maven-pmd-plugin/cpd-mojo.html#ignoreAnnotations