http://git-wip-us.apache.org/repos/asf/ambari/blob/d293ec1d/contrib/views/hawq/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/hawq/pom.xml b/contrib/views/hawq/pom.xml
index 8089d68..0c6591e 100644
--- a/contrib/views/hawq/pom.xml
+++ b/contrib/views/hawq/pom.xml
@@ -133,29 +133,35 @@
                 <!-- Building frontend -->
                 <groupId>com.github.eirslett</groupId>
                 <artifactId>frontend-maven-plugin</artifactId>
-                <version>1.3</version>
+                <version>1.4</version>
                 <configuration>
                     <nodeVersion>v4.5.0</nodeVersion>
-                    <npmVersion>2.15.0</npmVersion>
+                    <yarnVersion>v0.23.2</yarnVersion>
                     <workingDirectory>${ui.dir}</workingDirectory>
                     
<npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
+                    <!-- setting npm_config_tmp environment variable is a 
workaround for 
+                       https://github.com/Medium/phantomjs/issues/673 -->
+                    <environmentVariables>
+                      <npm_config_tmp>/tmp/npm_config_tmp</npm_config_tmp>
+                    </environmentVariables>
                 </configuration>
                 <executions>
                     <execution>
-                        <id>install node and npm</id>
+                        <id>install node and yarn</id>
                         <phase>generate-sources</phase>
                         <goals>
-                            <goal>install-node-and-npm</goal>
+                            <goal>install-node-and-yarn</goal>
                         </goals>
                     </execution>
                     <execution>
-                        <id>npm install</id>
+                        <id>yarn install --pure-lockfile</id>
                         <phase>generate-sources</phase>
                         <goals>
-                            <goal>npm</goal>
+                            <goal>yarn</goal>
                         </goals>
                         <configuration>
                             <arguments>install --unsafe-perm</arguments>
+                            <arguments>--ignore-engines</arguments>
                         </configuration>
                     </execution>
                 </executions>
@@ -262,4 +268,4 @@
         </resources>
 
     </build>
-</project>
\ No newline at end of file
+</project>

Reply via email to