Add PMD configuration 40/43240/1
authorRobert Varga <rovarga@cisco.com>
Fri, 5 Aug 2016 15:07:13 +0000 (17:07 +0200)
committerRobert Varga <rovarga@cisco.com>
Fri, 5 Aug 2016 15:07:13 +0000 (17:07 +0200)
PMD does not allow specifying wildcards, hence we have to enrich
its configuration here.

Change-Id: I45b7b8618950ec43f3c03cc9e4ee9d3b714d14ee
Signed-off-by: Robert Varga <rovarga@cisco.com>
binding/binding-parent/pom.xml

index 7b747aa1a3376eb684dc39de7e8c59a83d7322db..1697847cc5246c7776e17bf71a7ab9b22c3491f1 100644 (file)
                                 </execution>
                             </executions>
                         </plugin>
+
+                        <!-- This has to match the definition in odlparent and exists only
+                             because for some reason PMD does not understand wildcards. -->
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-pmd-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <id>cpd</id>
+                                    <phase>process-sources</phase>
+                                    <goals>
+                                        <goal>cpd-check</goal>
+                                    </goals>
+                                    <configuration>
+                                        <excludeRoots>
+                                            <excludeRoot>${salGeneratorPath}</excludeRoot>
+                                        </excludeRoots>
+                                    </configuration>
+                                </execution>
+                            </executions>
+                        </plugin>
                     </plugins>
                 </pluginManagement>
                 <plugins>