Bladeren bron

AMBARI-5351. Add Apache License Checking to Unit Tests. (jaimin)

Jaimin Jetly 11 jaren geleden
bovenliggende
commit
af7e32ed13
8 gewijzigde bestanden met toevoegingen van 66 en 2 verwijderingen
  1. 8 0
      ambari-agent/pom.xml
  2. 8 0
      ambari-client/pom.xml
  3. 8 0
      ambari-project/pom.xml
  4. 8 0
      ambari-server/pom.xml
  5. 8 0
      ambari-views/pom.xml
  6. 8 0
      ambari-web/pom.xml
  7. 9 1
      contrib/ambari-scom/pom.xml
  8. 9 1
      pom.xml

+ 8 - 0
ambari-agent/pom.xml

@@ -640,6 +640,14 @@
             <exclude>**/*.json</exclude>
           </excludes>
         </configuration>
+        <executions>
+          <execution>
+            <phase>test</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
       <plugin>
           <groupId>org.codehaus.mojo</groupId>

+ 8 - 0
ambari-client/pom.xml

@@ -158,6 +158,14 @@
             <exclude>**/*.json</exclude>
           </excludes>
         </configuration>
+        <executions>
+          <execution>
+            <phase>test</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
       <plugin>
         <groupId>org.vafer</groupId>

+ 8 - 0
ambari-project/pom.xml

@@ -387,6 +387,14 @@
         <groupId>org.apache.rat</groupId>
         <artifactId>apache-rat-plugin</artifactId>
         <configuration combine.self="override"/>
+        <executions>
+          <execution>
+            <phase>test</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>

+ 8 - 0
ambari-server/pom.xml

@@ -147,6 +147,14 @@
             <exclude>src/test/resources/users_for_dn_with_space.ldif</exclude>
           </excludes>
         </configuration>
+        <executions>
+          <execution>
+            <phase>test</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
       <plugin>
         <!--Static -->

+ 8 - 0
ambari-views/pom.xml

@@ -125,6 +125,14 @@
                         <exclude>**/*.json</exclude>
                     </excludes>
                 </configuration>
+              <executions>
+                <execution>
+                  <phase>test</phase>
+                  <goals>
+                    <goal>check</goal>
+                  </goals>
+                </execution>
+              </executions>
             </plugin>
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>

+ 8 - 0
ambari-web/pom.xml

@@ -194,6 +194,14 @@
             <exclude>node_modules/**</exclude>
           </excludes>
         </configuration>
+        <executions>
+          <execution>
+            <phase>test</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
       <plugin>
         <groupId>org.vafer</groupId>

+ 9 - 1
contrib/ambari-scom/pom.xml

@@ -32,7 +32,7 @@
                 <plugin>
                     <groupId>org.apache.rat</groupId>
                     <artifactId>apache-rat-plugin</artifactId>
-                    <version>0.8</version>
+                    <version>0.10</version>
                 </plugin>
             </plugins>
         </pluginManagement>
@@ -63,6 +63,14 @@
                         <exclude>**/*.cs</exclude>
                     </excludes>
                 </configuration>
+                <executions>
+                  <execution>
+                    <phase>test</phase>
+                    <goals>
+                      <goal>check</goal>
+                    </goals>
+                  </execution>
+                </executions>
             </plugin>
         </plugins>
     </build>

+ 9 - 1
pom.xml

@@ -57,7 +57,7 @@
         <plugin>
           <groupId>org.apache.rat</groupId>
           <artifactId>apache-rat-plugin</artifactId>
-          <version>0.8</version>
+          <version>0.10</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
@@ -161,6 +161,14 @@
             <exclude>contrib/ambari-scom/management-pack/Hadoop_MP/**</exclude>
           </excludes>
         </configuration>
+        <executions>
+          <execution>
+            <phase>test</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
       <plugin>
         <groupId>org.vafer</groupId>