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 st...@apache.org on 2022/05/03 13:08:51 UTC

[hadoop] branch trunk updated: HADOOP-18198. add -mvnargs option to create-release command line (#4239)

This is an automated email from the ASF dual-hosted git repository.

stevel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new aa917b1cd40 HADOOP-18198. add -mvnargs option to create-release command line (#4239)
aa917b1cd40 is described below

commit aa917b1cd4092f7bd6ebb2cf054dc663b81c91dd
Author: Steve Loughran <st...@cloudera.com>
AuthorDate: Wed Apr 27 17:31:17 2022 +0100

    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: I396e82d0915d679657d063a948f865041bcdde29
---
 dev-support/bin/create-release | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dev-support/bin/create-release b/dev-support/bin/create-release
index 0ba55e7e957..693b41c4f39 100755
--- a/dev-support/bin/create-release
+++ b/dev-support/bin/create-release
@@ -293,6 +293,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
@@ -347,6 +348,9 @@ function option_parse
       --version=*)
         HADOOP_VERSION=${i#*=}
       ;;
+      --mvnargs=*)
+        MVNEXTRAARGS=${i#*=}
+      ;;
     esac
   done
 
@@ -413,6 +417,9 @@ function option_parse
       MVN_ARGS=("-Dmaven.repo.local=${MVNCACHE}")
     fi
   fi
+  if [ -n "$MVNEXTRAARGS" ]; then
+    MVN_ARGS+=("$MVNEXTRAARGS")
+  fi
 
   if [[ "${SECURITYRELEASE}" = true ]]; then
     if [[ ! -d "${BASEDIR}/hadoop-common-project/hadoop-common/src/site/markdown/release/${HADOOP_VERSION}" ]]; then


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org