Add pcmm/umu/cops to exclude license checker (3rdparty lib) 59/31459/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 16 Dec 2015 15:48:00 +0000 (10:48 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 16 Dec 2015 15:49:27 +0000 (10:49 -0500)
Change-Id: Iea5950c2e9e84bf67c999252b174bc5e7b24ab48
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
packetcable-driver/pom.xml

index d6a102494ef67e1887887d0385f7d14222ccf794..4269718ebc387d64e0f30bea01a8aabd6059ead2 100644 (file)
                        </testResource>
                </testResources>
                <plugins>
+
+               <plugin>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <version>${checkstyle.version}</version>
+          <dependencies>
+            <dependency>
+              <groupId>org.opendaylight.odlparent</groupId>
+              <artifactId>checkstyle</artifactId>
+              <version>${odl.checkstyle.version}</version>
+            </dependency>
+            <dependency>
+              <groupId>org.opendaylight.odlparent</groupId>
+              <artifactId>odl-license</artifactId>
+              <version>0.0.1-SNAPSHOT</version>
+            </dependency>
+          </dependencies>
+          <executions>
+            <execution>
+              <id>check-license</id>
+              <goals>
+                <goal>check</goal>
+              </goals>
+              <phase>process-sources</phase>
+              <configuration>
+                <configLocation>check-license.xml</configLocation>
+                <includeResources>false</includeResources>
+                <includeTestResources>false</includeTestResources>
+                <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
+                <excludes>
+                  org/opendaylight/yang/gen/**,
+                  **/protobuff/messages/**,
+                  **/thrift/gen/*.java,
+                  **/org/umu/cops/**
+                </excludes>
+                <failsOnError>false</failsOnError>
+                <consoleOutput>true</consoleOutput>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+
                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                <artifactId>maven-bundle-plugin</artifactId>