ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsai...@apache.org
Subject [11/13] ambari git commit: AMBARI-20885.Convert all Ambari Views to use yarn package manager(Venkata Sairam)
Date Sun, 30 Apr 2017 09:18:20 GMT
http://git-wip-us.apache.org/repos/asf/ambari/blob/5c58240d/contrib/views/hawq/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/hawq/pom.xml b/contrib/views/hawq/pom.xml
index e2418ab..3a99209 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</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>


Mime
View raw message