You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2015/07/25 21:41:17 UTC

svn commit: r1692644 - /directory/project/trunk/pom.xml

Author: seelmann
Date: Sat Jul 25 19:41:16 2015
New Revision: 1692644

URL: http://svn.apache.org/r1692644
Log:
Update checkstyle-configuration version. Configure maven-checkstyle-plugin.

Modified:
    directory/project/trunk/pom.xml

Modified: directory/project/trunk/pom.xml
URL: http://svn.apache.org/viewvc/directory/project/trunk/pom.xml?rev=1692644&r1=1692643&r2=1692644&view=diff
==============================================================================
--- directory/project/trunk/pom.xml (original)
+++ directory/project/trunk/pom.xml Sat Jul 25 19:41:16 2015
@@ -524,6 +524,7 @@
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <skin.version>1.0.2</skin.version>
+    <org.apache.directory.checkstyle-configuration.version>0.2</org.apache.directory.checkstyle-configuration.version>
   </properties>
 
   <build>
@@ -562,7 +563,22 @@
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-checkstyle-plugin</artifactId>
-          <version>2.13</version>
+          <version>2.15</version>
+          <dependencies>
+            <dependency>
+              <groupId>com.puppycrawl.tools</groupId>
+              <artifactId>checkstyle</artifactId>
+              <version>6.8.1</version>
+            </dependency>
+            <dependency>
+              <groupId>org.apache.directory.buildtools</groupId>
+              <artifactId>checkstyle-configuration</artifactId>
+              <version>${org.apache.directory.checkstyle-configuration.version}</version>
+            </dependency>
+          </dependencies>
+          <configuration>
+            <configLocation>directory-checks.xml</configLocation>
+          </configuration>
         </plugin>
 
         <plugin>
@@ -973,6 +989,18 @@
         </plugins>
       </build>
     </profile>
+    
+    <profile>
+      <id>activate-checkstyle-supression</id>
+      <activation>
+        <file>
+          <exists>${basedir}/src/checkstyle/suppressions.xml</exists>
+        </file>
+      </activation>
+      <properties>
+        <checkstyle.suppressions.location>${basedir}/src/checkstyle/suppressions.xml</checkstyle.suppressions.location>
+      </properties>
+    </profile>
   </profiles>
 
 </project>