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 <55643692+slfan1...@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 <ste...@cloudera.com>
    Reviewed-by: He Xiaoqiao <hexiaoq...@apache.org>
    Signed-off-by: Shilun Fan <slfan1...@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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to