checkstyle: use our own checkstyle-suppressions.xml 02/49502/1
authorIsaku Yamahata <isaku.yamahata@intel.com>
Fri, 16 Dec 2016 23:06:18 +0000 (15:06 -0800)
committerIsaku Yamahata <isaku.yamahata@intel.com>
Fri, 16 Dec 2016 23:33:05 +0000 (15:33 -0800)
The changeset of f1c4e8a94515118893477c19effbaec53d4356d8
change id of I8b2ec5ee6d46dc108e781031996a1022b8c5330a in odlparent
defines its own checktyle-suppressions.xml. so that neutron northbound
fails to build because unintented suppression rule is used.
Make it sure that intended supressions are used.

Change-Id: Ifb14d25e5b7b374515274ef9644e35fe64dde5a4
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
neutron-spi/pom.xml
northbound-api/pom.xml

index 828a3426ef837cae9611cc8354d8527f0e0e51cd..22410b46386a7044fa2928ee907d628156da7e41 100644 (file)
   </dependencies>
   <build>
     <plugins>
+      <plugin>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <configuration>
+            <suppressionsLocation>../parent/checkstyle-suppressions.xml</suppressionsLocation>
+            <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
+            <excludes>org/opendaylight/yang/gen/**,**/yang/**</excludes>
+            <consoleOutput>true</consoleOutput>
+             <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+          </configuration>
+          <executions>
+            <execution>
+              <goals>
+                <goal>check</goal>
+              </goals>
+              <phase>process-sources</phase>
+            </execution>
+          </executions>
+      </plugin>
       <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
index 836df8e77e92535d3795592938a733204194c2c6..56e45674f20b232a093fc5cd0c12726ad6de6cbe 100644 (file)
   </dependencies>
   <build>
     <plugins>
+      <plugin>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <configuration>
+            <suppressionsLocation>../parent/checkstyle-suppressions.xml</suppressionsLocation>
+            <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
+            <excludes>org/opendaylight/yang/gen/**,**/yang/**</excludes>
+            <consoleOutput>true</consoleOutput>
+             <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+          </configuration>
+          <executions>
+            <execution>
+              <goals>
+                <goal>check</goal>
+              </goals>
+              <phase>process-sources</phase>
+            </execution>
+          </executions>
+      </plugin>
       <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>