[NO ISSUE][TEST] Allow asterix-dashboard skip

This allows the skip.npm property of the frontend-maven-plugin
to work properly for the asterix-dashboard module, so it can
be skipped for test runs that don't require it to be built
outside of the java components it has.

Change-Id: Ie089a8649376caf731f989da3db4e8443981ec63
Reviewed-on: https://asterix-gerrit.ics.uci.edu/3316
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Contrib: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Wail Alkowaileet <wael.y.k@gmail.com>
diff --git a/asterixdb/asterix-dashboard/pom.xml b/asterixdb/asterix-dashboard/pom.xml
index acf7e13..ff4234f 100644
--- a/asterixdb/asterix-dashboard/pom.xml
+++ b/asterixdb/asterix-dashboard/pom.xml
@@ -102,7 +102,7 @@
         <executions>
           <execution>
             <id>copy-static</id>
-            <phase>process-classes</phase>
+            <phase>${resource.stage}</phase>
             <goals>
               <goal>copy-resources</goal>
             </goals>
@@ -143,7 +143,7 @@
         <artifactId>license-automation-plugin</artifactId>
         <executions>
           <execution>
-            <phase>compile</phase>
+            <phase>${license.stage}</phase>
             <goals>
               <goal>generate</goal>
             </goals>
diff --git a/asterixdb/pom.xml b/asterixdb/pom.xml
index 0e6e80d..decf7e7 100644
--- a/asterixdb/pom.xml
+++ b/asterixdb/pom.xml
@@ -73,6 +73,8 @@
     <global.itest.excludes/>
     <itest.includes>${global.itest.includes}</itest.includes>
     <itest.excludes>${global.itest.excludes}</itest.excludes>
+    <license.stage>compile</license.stage>
+    <resource.stage>process-classes</resource.stage>
 
     <!-- Versions under dependencymanagement or used in many projects via properties -->
     <algebricks.version>0.3.5-SNAPSHOT</algebricks.version>
@@ -620,6 +622,19 @@
       </properties>
     </profile>
     <profile>
+      <id>skip-dashboard</id>
+      <activation>
+        <property>
+          <name>skip.npm</name>
+          <value>true</value>
+        </property>
+      </activation>
+      <properties>
+        <license.stage>none</license.stage>
+        <resource.stage>none</resource.stage>
+      </properties>
+    </profile>
+    <profile>
       <id>invalid-tests</id>
       <properties>
         <invalid.tests />