You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by sl...@apache.org on 2024/02/04 02:21:26 UTC
(hadoop-thirdparty) branch branch-1.2 updated: HADOOP-19064. [thirdparty] add -mvnargs option to create-release command line. (#31) Contributed by Shilun Fan
This is an automated email from the ASF dual-hosted git repository.
slfan1989 pushed a commit to branch branch-1.2
in repository https://gitbox.apache.org/repos/asf/hadoop-thirdparty.git
The following commit(s) were added to refs/heads/branch-1.2 by this push:
new 79723a9 HADOOP-19064. [thirdparty] add -mvnargs option to create-release command line. (#31) Contributed by Shilun Fan
79723a9 is described below
commit 79723a9bc9362d3a2e160d3ea22293ffa14ff766
Author: slfan1989 <55...@users.noreply.github.com>
AuthorDate: Sun Feb 4 08:39:10 2024 +0800
HADOOP-19064. [thirdparty] add -mvnargs option to create-release command line. (#31) Contributed by Shilun Fan
Reviewed-by: Steve Loughran <st...@cloudera.com>
Reviewed-by: He Xiaoqiao <he...@apache.org>
Signed-off-by: Shilun Fan <sl...@apache.org>
---
dev-support/bin/create-release | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dev-support/bin/create-release b/dev-support/bin/create-release
index 30ced9b..2f296e6 100755
--- a/dev-support/bin/create-release
+++ b/dev-support/bin/create-release
@@ -241,6 +241,7 @@ function usage
echo "--security Emergency security release"
echo "--sign Use .gnupg dir to sign the artifacts and jars"
echo "--version=[version] Use an alternative version string"
+ echo "--mvnargs=[args] Extra Maven args to be provided when running mvn commands"
}
function option_parse
@@ -291,6 +292,9 @@ function option_parse
--version=*)
HADOOP_THIRDPARTY_VERSION=${i#*=}
;;
+ --mvnargs=*)
+ MVNEXTRAARGS=${i#*=}
+ ;;
esac
done
@@ -358,6 +362,10 @@ function option_parse
fi
fi
+ if [ -n "$MVNEXTRAARGS" ]; then
+ MVN_ARGS+=("$MVNEXTRAARGS")
+ fi
+
if [[ "${SECURITYRELEASE}" = true ]]; then
if [[ ! -d "${BASEDIR}/src/site/markdown/release/${HADOOP_THIRDPARTY_VERSION}" ]]; then
hadoop_error "ERROR: ${BASEDIR}/src/site/markdown/release/${HADOOP_THIRDPARTY_VERSION} does not exist."
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org