diff --git a/build/buildall b/build/buildall index f9ac0507922..0599d080054 100755 --- a/build/buildall +++ b/build/buildall @@ -222,6 +222,8 @@ if [[ "$GEN_BLOOP" == "true" ]]; then exit 0 fi +[[ "$DIST_PROFILE" != "" ]] && MVN_PROFILE_OPT="-P$DIST_PROFILE" || MVN_PROFILE_OPT="" + # First element in SPARK_SHIM_VERSIONS to do most of the checks export BASE_VER=${SPARK_SHIM_VERSIONS[0]} export NUM_SHIMS=${#SPARK_SHIM_VERSIONS[@]} @@ -305,7 +307,7 @@ time ( # a negligible increase of the build time by ~2 seconds. joinShimBuildFrom="aggregator" echo "Resuming from $joinShimBuildFrom build only using $BASE_VER" - $MVN $FINAL_OP -rf $joinShimBuildFrom $MODULE_OPT $INCLUDED_BUILDVERS_OPT \ + $MVN $FINAL_OP -rf $joinShimBuildFrom $MODULE_OPT $MVN_PROFILE_OPT $INCLUDED_BUILDVERS_OPT \ -Dbuildver="$BASE_VER" \ -DskipTests -Dmaven.scaladoc.skip )