dean0bambin0
dean0bambin0

Reputation: 21

How can I ignore Annotations when using Maven CPD?

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

Upvotes: 1

Views: 413

Answers (1)

Alex Shesterov
Alex Shesterov

Reputation: 27585

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

Upvotes: 0

Related Questions