You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by je...@apache.org on 2020/02/05 04:26:33 UTC
[tez] branch master updated: TEZ-2229. bower ESUDO Cannot be run
with sudo -- during build
This is an automated email from the ASF dual-hosted git repository.
jeagles pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tez.git
The following commit(s) were added to refs/heads/master by this push:
new f214eab TEZ-2229. bower ESUDO Cannot be run with sudo -- during build
f214eab is described below
commit f214eabfb5f1da5ce5970558d97bf15405e3da9b
Author: Syed Shameerur Rahman <sr...@qubole.com>
AuthorDate: Tue Feb 4 22:26:11 2020 -0600
TEZ-2229. bower ESUDO Cannot be run with sudo -- during build
Signed-off-by: Jonathan Eagles <je...@apache.org>
---
BUILDING.txt | 1 +
tez-ui/pom.xml | 16 +++++++++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/BUILDING.txt b/BUILDING.txt
index ff7ac51..f2231ea 100644
--- a/BUILDING.txt
+++ b/BUILDING.txt
@@ -52,6 +52,7 @@ Build options:
* Use -Dclover.license to specify the path to the clover license file
* Use -Dhadoop.version to specify the version of hadoop to build tez against
* Use -Dprotoc.path to specify the path to protoc
+ * Use -Dallow.root.build to root build tez-ui components
Tests options:
diff --git a/tez-ui/pom.xml b/tez-ui/pom.xml
index 365249f..500d21a 100644
--- a/tez-ui/pom.xml
+++ b/tez-ui/pom.xml
@@ -34,6 +34,8 @@
<packageManagerScript>node/yarn/dist/bin/yarn.js</packageManagerScript>
+ <allow-root-build>--allow-root=false</allow-root-build>
+
<skipTests>false</skipTests>
</properties>
@@ -72,6 +74,18 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>allowRootBuild</id>
+ <activation>
+ <property>
+ <name>allow.root.build</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <properties>
+ <allow-root-build>--allow-root=true</allow-root-build>
+ </properties>
+ </profile>
</profiles>
<build>
@@ -144,7 +158,7 @@
<phase>generate-resources</phase>
<id>bower install</id>
<configuration>
- <arguments>install</arguments>
+ <arguments>install ${allow-root-build}</arguments>
</configuration>
<goals>
<goal>bower</goal>