Author: hboutemy
Date: Sun Sep 28 16:12:14 2014
New Revision: 1628078

URL: http://svn.apache.org/r1628078
Log:
[MPOM-59] enable checkstyle:check on every build

Modified:
    maven/pom/trunk/maven/pom.xml

Modified: maven/pom/trunk/maven/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/pom/trunk/maven/pom.xml?rev=1628078&r1=1628077&r2=1628078&view=diff
==============================================================================
--- maven/pom/trunk/maven/pom.xml (original)
+++ maven/pom/trunk/maven/pom.xml Sun Sep 28 16:12:14 2014
@@ -792,6 +792,8 @@ under the License.
     <maven.site.cache>${user.home}/maven-sites</maven.site.cache>
     <maven.site.path>../..</maven.site.path><!-- to be overridden -->
     <mavenPluginToolsVersion>3.3</mavenPluginToolsVersion>
+    <!-- don't fail check for some rules that are too hard to enforce (could 
even be told broken for some) -->
+    
<checkstyle.violation.ignore>RedundantThrows,NewlineAtEndOfFile</checkstyle.violation.ignore>
   </properties>
 
   <dependencyManagement>
@@ -892,10 +894,33 @@ under the License.
             <arguments>${arguments}</arguments>
           </configuration>
         </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-checkstyle-plugin</artifactId>
+          <version>2.13</version>
+          <configuration>
+            <configLocation>config/maven_checks.xml</configLocation>
+            <headerLocation>config/maven-header.txt</headerLocation>
+            <excludes>**/HelpMojo.java</excludes>
+          </configuration>
+        </plugin>
       </plugins>
     </pluginManagement>
     <plugins>
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>checkstyle-check</id>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
         <executions>
           <execution>
@@ -944,7 +969,7 @@ under the License.
         <artifactId>apache-rat-plugin</artifactId>
         <executions>
           <execution>
-            <id>check</id>
+            <id>rat-check</id>
             <goals>
               <goal>check</goal>
             </goals>
@@ -1058,10 +1083,6 @@ under the License.
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-checkstyle-plugin</artifactId>
             <version>2.13</version>
-            <configuration>
-              <configLocation>config/maven_checks.xml</configLocation>
-              <headerLocation>config/maven-header.txt</headerLocation>
-            </configuration>
             <reportSets>
               <reportSet>
                 <id>default</id>


Reply via email to