You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2019/03/28 17:30:24 UTC
[hbase] 01/01: HBASE-22125 Fix more instances in make_rc.sh where
we need -Dhttps.protocols=TLSv1.2
This is an automated email from the ASF dual-hosted git repository.
apurtell pushed a commit to annotated tag 1.5.0RC3
in repository https://gitbox.apache.org/repos/asf/hbase.git
commit 569a0164ce9b355e503aa32bbae28bb63b73a340
Author: Andrew Purtell <ap...@apache.org>
AuthorDate: Thu Mar 28 10:26:26 2019 -0700
HBASE-22125 Fix more instances in make_rc.sh where we need -Dhttps.protocols=TLSv1.2
---
dev-support/make_rc.sh | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/dev-support/make_rc.sh b/dev-support/make_rc.sh
index 1f01021..3a4afd8 100755
--- a/dev-support/make_rc.sh
+++ b/dev-support/make_rc.sh
@@ -49,6 +49,7 @@ mvnopts="-Xmx3g"
if [ "$MAVEN_OPTS" != "" ]; then
mvnopts="${MAVEN_OPTS}"
fi
+mvnopts="${mvnopts} -Dhttps.protocols=TLSv1.2"
# Ensure we are inside a git repo before making progress
# The below will fail if outside git.
@@ -59,7 +60,7 @@ git checkout "${git_tag}"
# Get mvn protject version
#shellcheck disable=SC2016
-version=$(${mvn} -q -N -Dexec.executable="echo" -Dexec.args='${project.version}' exec:exec)
+version=$(MAVEN_OPTS="${mvnopts}" ${mvn} -q -N -Dexec.executable="echo" -Dexec.args='${project.version}' exec:exec)
hbase_name="hbase-${version}"
# Make a dir to save tgzs into.
@@ -76,9 +77,9 @@ function build_src {
# Build bin tgz
function build_bin {
MAVEN_OPTS="${mvnopts}" ${mvn} clean install -DskipTests -Papache-release -Prelease \
- -Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=${output_dir}/repository
+ -Dmaven.repo.local=${output_dir}/repository
MAVEN_OPTS="${mvnopts}" ${mvn} install -DskipTests site assembly:single -Papache-release -Prelease \
- -Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=${output_dir}/repository
+ -Dmaven.repo.local=${output_dir}/repository
mv ./hbase-assembly/target/hbase-*.tar.gz "${output_dir}"
}
@@ -88,7 +89,7 @@ MAVEN_OPTS="${mvnopts}" ${mvn} clean
# Now do the two builds, one for hadoop1, then hadoop2
# Run a rat check.
-${mvn} apache-rat:check
+MAVEN_OPTS="${mvnopts}" ${mvn} apache-rat:check
#Build src.
build_src
@@ -102,7 +103,7 @@ build_bin
# upload from repository.apache.org by 'drop'ping it from the staging
# repository before restart.
MAVEN_OPTS="${mvnopts}" ${mvn} deploy -DskipTests -Papache-release -Prelease \
- -Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=${output_dir}/repository
+ -Dmaven.repo.local=${output_dir}/repository
# Do sha512 and md5
cd ${output_dir}