This is an automated email from the ASF dual-hosted git repository.

jinsongzhou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/amoro.git


The following commit(s) were added to refs/heads/master by this push:
     new 059e2ca8e [AMORO-3848][FOLLOWUP] Prompt spark profile in docker build 
(#3904)
059e2ca8e is described below

commit 059e2ca8efdfe5b4dccad46c7c2f781f251a818a
Author: Fei Wang <[email protected]>
AuthorDate: Mon Nov 10 21:22:59 2025 -0800

    [AMORO-3848][FOLLOWUP] Prompt spark profile in docker build (#3904)
    
    Prompt spark profile in docker build
---
 docker/build.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docker/build.sh b/docker/build.sh
index 6d63ef038..213a6fc85 100755
--- a/docker/build.sh
+++ b/docker/build.sh
@@ -185,7 +185,7 @@ function build_optimizer_spark() {
     OPTIMIZER_JOB=${SPARK_OPTIMIZER_JOB}
 
     if [ ! -f "${OPTIMIZER_JOB}" ]; then
-      BUILD_CMD="$MVN clean package -pl amoro-optimizer/amoro-optimizer-spark 
-am -e -DskipTests"
+      BUILD_CMD="$MVN clean package -pl amoro-optimizer/amoro-optimizer-spark 
-am -e -DskipTests -Pspark-${SPARK_MAJOR_VERSION}"
       echo "spark optimizer job not exists in ${OPTIMIZER_JOB}"
       echo "please check the file or run '${BUILD_CMD}' first. "
       exit  1
@@ -208,7 +208,7 @@ function build_amoro() {
   local 
DIST_FILE=${PROJECT_HOME}/dist/target/apache-amoro-${AMORO_VERSION}-bin.tar.gz
 
   if [ ! -f "${DIST_FILE}" ]; then
-    local BUILD_CMD="$MVN clean package -am -e -pl dist -DskipTests "
+    local BUILD_CMD="$MVN clean package -am -e -pl dist -DskipTests 
-Pspark-${SPARK_MAJOR_VERSION}"
     echo "Amoro dist package is not exists in ${DIST_FILE}"
     echo "please check file or run '$BUILD_CMD' first"
     exit 1

Reply via email to