Enforce checkstyle in lockmanager-api module 64/50664/1
authorDavid Suarez <david.suarez.fuentes@ericsson.com>
Thu, 19 Jan 2017 12:31:06 +0000 (13:31 +0100)
committerDavid Suarez <david.suarez.fuentes@ericsson.com>
Thu, 19 Jan 2017 12:31:06 +0000 (13:31 +0100)
Checkstyle enforcement for lockmanager-api module.

Change-Id: Ie345aa80e5afd0e90c086f562a8daa8804cc0767
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
lockmanager/lockmanager-api/pom.xml

index 1cf83a2f9440f1f52833dee864350878a6aee2cc..3be1959bb4778e4915a0268f3779d68fe8fe2cfa 100644 (file)
@@ -6,7 +6,8 @@ This program and the accompanying materials are made available under the
 terms of the Eclipse Public License v1.0 which accompanies this distribution,
 and is available at http://www.eclipse.org/legal/epl-v10.html
 -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
 
   <parent>
@@ -34,6 +35,13 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
   <build>
     <pluginManagement>
       <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <configuration>
+            <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
+          </configuration>
+        </plugin>
         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
         <plugin>
           <groupId>org.eclipse.m2e</groupId>