How can I ignore Annotations when using Maven CPD?

324 views Asked by At

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

1

There are 1 answers

0
Alex Shesterov On

Update, 2019:

maven-pmd-plugin version 3.11.0 added the ignoreAnnotations configuration option.

See plugin documentation: http://maven.apache.org/plugins/maven-pmd-plugin/cpd-mojo.html#ignoreAnnotations