File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ function usage
283283{
284284 echo " --artifactsdir=[path] Path to use to store release bits"
285285 echo " --asfrelease Make an ASF release"
286+ echo " --aws-sdk Include the AWS SDK bundle.jar in the release"
286287 echo " --deploy Deploy Maven artifacts using ~/.m2/settings.xml"
287288 echo " --docker Use Hadoop's Dockerfile for guaranteed environment"
288289 echo " --dockercache Use a Docker-private maven cache"
@@ -311,6 +312,9 @@ function option_parse
311312 --artifactsdir=* )
312313 ARTIFACTS_DIR=${i#* =}
313314 ;;
315+ --aws-sdk)
316+ AWSSDK=true
317+ ;;
314318 --deploy)
315319 DEPLOY=true
316320 ;;
@@ -580,11 +584,18 @@ function makearelease
580584 target=" deploy"
581585 fi
582586
587+ # create profiles for the main build
588+ PROFILES=dist,src,yarn-ui
589+ if [[ " ${AWSSDK} " = true ]]; then
590+ # Add (large) AWS SDK to the build
591+ PROFILES=" ${PROFILES} ,awssdk"
592+ fi
593+
583594 # Create SRC and BIN tarballs for release,
584595 # shellcheck disable=SC2046,SC2086
585596 run_and_redirect " ${LOGDIR} /mvn_${target} .log" \
586597 " ${MVN} " ${MVN_ARGS[*]} ${target} \
587- -Pdist,src,yarn-ui \
598+ -P ${PROFILES} \
588599 " ${signflags[@]} " \
589600 -DskipTests -Dtar $( hadoop_native_flags)
590601
You can’t perform that action at this time.
0 commit comments