Skip to content

Commit 2018ab2

Browse files
authored
[chore](build) Add MVN_OPT env variable to enrich building FE with extra options (apache#28375)
e.g. just export or add it to custom_env.sh ``` export MVN_OPT="-o" ``` will build FE with maven option "-o" (offline), which means maven does not need to download meta from maven repo, it is useful for saving time if the internet is unstable or unusable.
1 parent e6b135c commit 2018ab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,9 @@ if [[ "${FE_MODULES}" != '' ]]; then
590590
clean_fe
591591
fi
592592
if [[ "${DISABLE_JAVA_CHECK_STYLE}" = "ON" ]]; then
593-
"${MVN_CMD}" package -pl ${FE_MODULES:+${FE_MODULES}} -Dskip.doc=true -DskipTests -Dcheckstyle.skip=true
593+
"${MVN_CMD}" package -pl ${FE_MODULES:+${FE_MODULES}} -Dskip.doc=true -DskipTests -Dcheckstyle.skip=true ${MVN_OPT:+${MVN_OPT}}
594594
else
595-
"${MVN_CMD}" package -pl ${FE_MODULES:+${FE_MODULES}} -Dskip.doc=true -DskipTests
595+
"${MVN_CMD}" package -pl ${FE_MODULES:+${FE_MODULES}} -Dskip.doc=true -DskipTests ${MVN_OPT:+${MVN_OPT}}
596596
fi
597597
cd "${DORIS_HOME}"
598598
fi

0 commit comments

Comments
 (0)