From 0b352ba852feae0c670b6acc2c74450dce691cc0 Mon Sep 17 00:00:00 2001 From: fwang12 Date: Thu, 25 May 2023 13:59:11 +0800 Subject: [PATCH] [KYUUBI #4880] [BUILD] Skip compiling useless files when making distribution ### _Why are the changes needed?_ To speed up the making distribution. Refer https://github.com/apache/spark/pull/41141 This PR add more skip properties when making distribution: - -Dmaven.javadoc.skip=true to skip generating javadoc - -Dmaven.scaladoc.skip=true to skip generating scaladoc. Please see: https://davidb.github.io/scala-maven-plugin/doc-jar-mojo.html#skip - -Dmaven.source.skip to skip generating sources.jar ### _How was this patch tested?_ Manual test: image ``` ./build/dist --spark-provided --hive-provided --flink-provided ``` Before this pr: ``` [INFO] Total time: 09:20 min ``` After this pr: ``` [INFO] Total time: 06:46 min ``` Closes #4880 from turboFei/speedup_dist. Closes #4880 47f5ef2ac [fwang12] [BUILD] Skip compiling useless files when making distribution Authored-by: fwang12 Signed-off-by: Cheng Pan --- build/dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/dist b/build/dist index 33ef189c6..4188c78bb 100755 --- a/build/dist +++ b/build/dist @@ -215,7 +215,7 @@ else echo "Making distribution for Kyuubi $VERSION in '$DISTDIR'..." fi -MVN_DIST_OPT="-DskipTests" +MVN_DIST_OPT="-DskipTests -Dmaven.javadoc.skip=true -Dmaven.scaladoc.skip=true -Dmaven.source.skip" if [[ "$ENABLE_WEBUI" == "true" ]]; then MVN_DIST_OPT="$MVN_DIST_OPT -Pweb-ui"