apply checkstyle check during build for neutron-mapper
[groupbasedpolicy.git] / neutron-mapper / pom.xml
index 167c0da1d30b89f35c850c5aa3210e53dea475fb..f24cc5cf6e6d7fce626540159335778d5e46d6c0 100644 (file)
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <configuration>
+          <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>
     </plugins>
   </build>
 </project>