Skip to content

Commit c2b2494

Browse files
committed
HADOOP-18198. add -mvnargs option to create-release command line (#4239)
This allows for builds to be run with options like --mvnargs="-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false" Contributed by Ayush Saxena. Change-Id: I0e3d421da13bf0bc32cbbfbfb2c428828bdbb84c
1 parent f155abc commit c2b2494

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dev-support/bin/create-release

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ function usage
293293
echo "--security Emergency security release"
294294
echo "--sign Use .gnupg dir to sign the artifacts and jars"
295295
echo "--version=[version] Use an alternative version string"
296+
echo "--mvnargs=[args] Extra Maven args to be provided when running mvn commands"
296297
}
297298

298299
function option_parse
@@ -347,6 +348,9 @@ function option_parse
347348
--version=*)
348349
HADOOP_VERSION=${i#*=}
349350
;;
351+
--mvnargs=*)
352+
MVNEXTRAARGS=${i#*=}
353+
;;
350354
esac
351355
done
352356

@@ -413,6 +417,9 @@ function option_parse
413417
MVN_ARGS=("-Dmaven.repo.local=${MVNCACHE}")
414418
fi
415419
fi
420+
if [ -n "$MVNEXTRAARGS" ]; then
421+
MVN_ARGS+=("$MVNEXTRAARGS")
422+
fi
416423

417424
if [[ "${SECURITYRELEASE}" = true ]]; then
418425
if [[ ! -d "${BASEDIR}/hadoop-common-project/hadoop-common/src/site/markdown/release/${HADOOP_VERSION}" ]]; then

0 commit comments

Comments
 (0)