Repository: ambari Updated Branches: refs/heads/trunk 5d077fba8 -> 759edd4d3
AMBARI-10303. Install node / brunch and other build dependencies at build time. Additional patch. (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/759edd4d Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/759edd4d Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/759edd4d Branch: refs/heads/trunk Commit: 759edd4d37aea54dcaf7056a715f786c26f9f2e8 Parents: 5d077fb Author: Alex Antonenko <[email protected]> Authored: Wed Apr 1 20:29:03 2015 +0300 Committer: Alex Antonenko <[email protected]> Committed: Wed Apr 1 20:29:03 2015 +0300 ---------------------------------------------------------------------- ambari-web/pom.xml | 58 +++++++++++++++---------------------------------- 1 file changed, 17 insertions(+), 41 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/759edd4d/ambari-web/pom.xml ---------------------------------------------------------------------- diff --git a/ambari-web/pom.xml b/ambari-web/pom.xml index 65ff47e..c6b6c23 100644 --- a/ambari-web/pom.xml +++ b/ambari-web/pom.xml @@ -89,16 +89,28 @@ <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> - <version>0.0.19</version> + <version>0.0.14</version> + <configuration> + <nodeVersion>v0.10.26</nodeVersion> + <npmVersion>1.4.3</npmVersion> + <workingDirectory>${basedir}</workingDirectory> + </configuration> <executions> <execution> <id>install node and npm</id> + <phase>generate-sources</phase> <goals> <goal>install-node-and-npm</goal> </goals> + </execution> + <execution> + <id>npm install</id> + <phase>generate-sources</phase> + <goals> + <goal>npm</goal> + </goals> <configuration> - <nodeVersion>v0.10.33</nodeVersion> - <npmVersion>1.4.4</npmVersion> + <arguments>install --unsafe-perm</arguments> </configuration> </execution> </executions> @@ -117,7 +129,7 @@ <configuration> <executable>${executable.rmdir}</executable> <workingDirectory>${basedir}</workingDirectory> - <commandlineArgs>${args.rm.clean} public node_modules node</commandlineArgs> + <commandlineArgs>${args.rm.clean} public node_modules</commandlineArgs> <successCodes> <successCode>0</successCode> <successCode>1</successCode> @@ -134,43 +146,7 @@ <configuration> <executable>${executable.mkdir}</executable> <workingDirectory>${basedir}</workingDirectory> - <commandlineArgs>${args.mkdir} public node</commandlineArgs> - </configuration> - </execution> - <execution> - <id>npm-cache-clean</id> - <phase>compile</phase> - <goals> - <goal>exec</goal> - </goals> - <configuration> - <executable>${executable.node}</executable> - <workingDirectory>${basedir}</workingDirectory> - <commandlineArgs>${args.npm.full.path} cache clean</commandlineArgs> - </configuration> - </execution> - <execution> - <id>npm-cache-info</id> - <phase>compile</phase> - <goals> - <goal>exec</goal> - </goals> - <configuration> - <executable>${executable.node}</executable> - <workingDirectory>${basedir}</workingDirectory> - <commandlineArgs>${args.npm.full.path} cache ls</commandlineArgs> - </configuration> - </execution> - <execution> - <id>install-npm</id> - <phase>compile</phase> - <goals> - <goal>exec</goal> - </goals> - <configuration> - <executable>${executable.node}</executable> - <workingDirectory>${basedir}</workingDirectory> - <commandlineArgs>${args.npm.full.path} install</commandlineArgs> + <commandlineArgs>${args.mkdir} public</commandlineArgs> </configuration> </execution> <execution>
