You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2017/06/13 21:24:25 UTC

[2/3] accumulo git commit: ACCUMULO-4432 Ensure ITs are categorized

ACCUMULO-4432 Ensure ITs are categorized

Adds warbucks-maven-plugin to jdk8 profile (requires java 8) configured
to fail if ITs are found without a JUnit @Category annotation.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/12242315
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/12242315
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/12242315

Branch: refs/heads/master
Commit: 122423151481512d2dd05b9d1133ee8945ff75a2
Parents: 2b72e7c
Author: Christopher Tubbs <ct...@apache.org>
Authored: Tue Jun 13 16:50:09 2017 -0400
Committer: Christopher Tubbs <ct...@apache.org>
Committed: Tue Jun 13 16:50:09 2017 -0400

----------------------------------------------------------------------
 pom.xml | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/12242315/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index b023908..957792a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1279,6 +1279,19 @@
                         <ignore />
                       </action>
                     </pluginExecution>
+                    <pluginExecution>
+                      <pluginExecutionFilter>
+                        <groupId>net.revelc.code</groupId>
+                        <artifactId>warbucks-maven-plugin</artifactId>
+                        <versionRange>[0,)</versionRange>
+                        <goals>
+                          <goal>check</goal>
+                        </goals>
+                      </pluginExecutionFilter>
+                      <action>
+                        <ignore />
+                      </action>
+                    </pluginExecution>
                   </pluginExecutions>
                 </lifecycleMappingMetadata>
               </configuration>
@@ -1375,8 +1388,37 @@
                 <additionalparam>-Xdoclint:all,-Xdoclint:-missing</additionalparam>
               </configuration>
             </plugin>
+            <plugin>
+              <groupId>net.revelc.code</groupId>
+              <artifactId>warbucks-maven-plugin</artifactId>
+              <version>1.0.0</version>
+            </plugin>
           </plugins>
         </pluginManagement>
+        <plugins>
+          <plugin>
+            <groupId>net.revelc.code</groupId>
+            <artifactId>warbucks-maven-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>check-junit-categories-on-its</id>
+                <goals>
+                  <goal>check</goal>
+                </goals>
+                <configuration>
+                  <rules>
+                    <rule>
+                      <includeMainClasses>true</includeMainClasses>
+                      <includeTestClasses>true</includeTestClasses>
+                      <classPattern>.*IT</classPattern>
+                      <classAnnotationPattern>org[.]junit[.]experimental[.]categories[.]Category</classAnnotationPattern>
+                    </rule>
+                  </rules>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
       </build>
     </profile>
     <profile>