AMBARI-20813. Convert ambari-web build process to use yarn package manager to fix dependencies and to make the process faster. (yusaku)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4a8d3be9 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4a8d3be9 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4a8d3be9 Branch: refs/heads/branch-feature-AMBARI-12556 Commit: 4a8d3be91c29660b134c6b1583ff5fce607da915 Parents: bff50bd Author: Yusaku Sako <yus...@hortonworks.com> Authored: Thu Apr 20 17:56:09 2017 -0700 Committer: Yusaku Sako <yus...@hortonworks.com> Committed: Thu Apr 20 17:56:09 2017 -0700 ---------------------------------------------------------------------- ambari-web/pom.xml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/4a8d3be9/ambari-web/pom.xml ---------------------------------------------------------------------- diff --git a/ambari-web/pom.xml b/ambari-web/pom.xml index 895d2f7..2f6d571 100644 --- a/ambari-web/pom.xml +++ b/ambari-web/pom.xml @@ -126,29 +126,35 @@ <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>${basedir}</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</arguments> + <arguments>--ignore-engines</arguments> </configuration> </execution> </executions> @@ -267,6 +273,7 @@ <exclude>node_modules/**</exclude> <exclude>node/**</exclude> <exclude>npm-debug.log</exclude> + <exclude>yarn.lock</exclude> </excludes> </configuration> <executions>