bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject [2/3] bigtop git commit: BIGTOP-2710. qfs debian build is breaking because it is confused about Maven home
Date Wed, 22 Mar 2017 20:26:50 GMT
BIGTOP-2710. qfs debian build is breaking because it is confused about Maven home


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/4be5b98e
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/4be5b98e
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/4be5b98e

Branch: refs/heads/master
Commit: 4be5b98e6a4f931437897137dc10a2a36c7adc67
Parents: 170df6d
Author: Roman Shaposhnik <rvs@apache.org>
Authored: Wed Mar 22 11:50:41 2017 -0700
Committer: Roman Shaposhnik <rvs@apache.org>
Committed: Wed Mar 22 12:49:48 2017 -0700

----------------------------------------------------------------------
 bigtop-packages/src/common/qfs/do-component-build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/4be5b98e/bigtop-packages/src/common/qfs/do-component-build
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/qfs/do-component-build b/bigtop-packages/src/common/qfs/do-component-build
index 3284cd3..738f011 100644
--- a/bigtop-packages/src/common/qfs/do-component-build
+++ b/bigtop-packages/src/common/qfs/do-component-build
@@ -83,6 +83,9 @@ command -v mvn > /dev/null 2>&1 || {
 
 PYTHON3_PATH=${PYTHON3_PATH:-}
 
+# Workaround for BIGTOP-2710 
+sed -ie '/which/!s#mvn #mvn -Duser.home=${HOME} #g' src/java/javabuild.sh
+
 # Build and install QFS into the build/release directory
 make
 
@@ -111,8 +114,8 @@ get_hadoop_qfs_profile() {
 
 HADOOP_QFS_PROFILE=$(get_hadoop_qfs_profile)
 cd src/java
-mvn -Dqfs.release.version=${QFS_VERSION} --projects qfs-access package
-mvn -P $HADOOP_QFS_PROFILE -Dqfs.release.version=${QFS_VERSION} \
+mvn -Duser.home=${HOME} -Dqfs.release.version=${QFS_VERSION} --projects qfs-access package
+mvn -P $HADOOP_QFS_PROFILE -Duser.home=${HOME} -Dqfs.release.version=${QFS_VERSION} \
     -Dhadoop.release.version=${HADOOP_VERSION} -Dtest.build.data=/tmp \
     package
 cd ../..


Mime
View raw message