You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ha...@apache.org on 2021/11/02 12:22:02 UTC

[ambari] branch branch-2.7 updated: AMBARI-25693 Ambari Admin View failed to build due to PhantomJS (#3318)

This is an automated email from the ASF dual-hosted git repository.

hapylestat pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 20298d4  AMBARI-25693 Ambari Admin View failed to build due to PhantomJS (#3318)
20298d4 is described below

commit 20298d4ba48fae921f7b6a81ff563c30fa97d6f4
Author: Szilárd Antal <sa...@cloudera.com>
AuthorDate: Tue Nov 2 13:21:55 2021 +0100

    AMBARI-25693 Ambari Admin View failed to build due to PhantomJS (#3318)
    
    AMBARI-25693 Ambari Admin View failed to build due to PhantomJS (santal via dgrinenko)
---
 ambari-admin/pom.xml | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/ambari-admin/pom.xml b/ambari-admin/pom.xml
index aac5562..9ab45a8 100644
--- a/ambari-admin/pom.xml
+++ b/ambari-admin/pom.xml
@@ -61,29 +61,34 @@
       <plugin>
         <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>src/main/resources/ui/admin-web/</workingDirectory>
-          <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
+          <yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
+          <!-- 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>install --ignore-engines --pure-lockfile</arguments>
             </configuration>
           </execution>
         </executions>
@@ -259,7 +264,7 @@
         <dirsep>/</dirsep>
         <executable.shell>sh</executable.shell>
         <fileextension.shell>sh</fileextension.shell>
-        <args.shell></args.shell>
+        <args.shell/>
       </properties>
     </profile>
       <profile>