diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml index ae7ab0d3c7..31d2f5e688 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml @@ -31,7 +31,7 @@ pom ${basedir}/target/src/main/webapp - node + ${basedir}/target/src/main/webapp/node/node v4.4.5 2.15.5 false @@ -169,12 +169,11 @@ ${webappTgtDir} - ember + ${node.executable} - build - -prod - --output-path - ${basedir}/target/dist + node/npm/bin/npm-cli + run + build:mvn @@ -187,7 +186,7 @@ maven-war-plugin ${basedir}/src/main/webapp/WEB-INF/web.xml - ${basedir}/target/dist + ${webappTgtDir}/dist diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json index 573e505128..105dad3fb0 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json @@ -8,8 +8,10 @@ "test": "tests" }, "scripts": { - "build": "ember build", - "start": "ember server" + "build": "TMPDIR=tmp node ./node_modules/ember-cli/bin/ember build", + "start": "TMPDIR=tmp node ./node_modules/ember-cli/bin/ember server", + + "build:mvn": "TMPDIR=tmp node/node ./node_modules/ember-cli/bin/ember build -prod" }, "repository": "", "engines": {