Merge "Checkstyle maven plugin check - yangtools"
[yangtools.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index cf6dcbf84b1b0d514a732ecbde921a184fe938be..90a3e97e4d01e74a1229dea69696d54e90a0b03e 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <!-- module>third-party</module -->
     </modules>
 
+    <build>
+        <pluginManagement>        
+            <plugins>
+                <plugin>
+                 <groupId>org.apache.maven.plugins</groupId>
+                 <artifactId>maven-checkstyle-plugin</artifactId>
+                 <version>2.12</version>
+                 <configuration>
+                   <failOnViolation>false</failOnViolation>
+                   <configLocation>checkstyle-logging.xml</configLocation>
+                   <consoleOutput>true</consoleOutput>
+                   <includeTestSourceDirectory>true</includeTestSourceDirectory>
+                   <sourceDirectory>${project.basedir}</sourceDirectory>
+                   <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
+                   <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/,**\/src/main/xtend-gen\/</excludes>
+                 </configuration>
+                 <dependencies>
+                   <dependency>
+                     <groupId>org.opendaylight.yangtools</groupId>
+                     <artifactId>checkstyle-logging</artifactId>
+                     <version>${project.version}</version>
+                   </dependency>
+                 </dependencies>
+                 <executions>
+                   <execution>
+                     <goals>
+                       <goal>check</goal>
+                     </goals>
+                   </execution>
+                 </executions>
+               </plugin>
+            </plugins>            
+        </pluginManagement>
+    </build>
 </project>