HBASE-21074 JDK7 builds need to be done with TLSv1.2.

Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
Sean Busbey 2018-08-19 22:29:46 -05:00
parent d1ebc3d2a8
commit e500207503
3 changed files with 9 additions and 1 deletions

View File

@ -115,6 +115,9 @@ function personality_modules
clear_personality_queue
extra="-DHBasePatchProcess"
if [[ "${PATCH_BRANCH}" = branch-1* ]]; then
extra="${extra} -Dhttps.protocols=TLSv1.2"
fi
if [[ -n "${HADOOP_PROFILE}" ]]; then
extra="${extra} -Dhadoop.profile=${HADOOP_PROFILE}"

View File

@ -161,7 +161,8 @@ fi
cd "${unpack_dir}"
echo "Follow the ref guide section on making a RC: Step 8 Build the binary tarball."
if mvn -DskipTests -Prelease --batch-mode -Dmaven.repo.local="${m2_tarbuild}" clean install \
# N.B. Older JDK7 requires the TLSv1.2 in order to talk to maven central
if mvn -Dhttps.protocols=TLSv1.2 -DskipTests -Prelease --batch-mode -Dmaven.repo.local="${m2_tarbuild}" clean install \
assembly:single >"${working_dir}/srctarball_install.log" 2>&1; then
echo "Building a binary tarball from the source tarball succeeded."
else

View File

@ -472,7 +472,11 @@ mvn -DskipTests package assembly:single deploy
[[build.gotchas]]
==== Build Gotchas
===== Failure to find dependencies with "protocol_version" error
Many maven repositories, most notably Maven Central, now require TLSv1.2 for HTTPS connections. On older JDK7 instances you may need to manually add +-Dhttps.protocols=TLSv1.2+ to your Maven command line invocation.
===== Maven Site failure
If you see `Unable to find resource 'VM_global_library.vm'`, ignore it.
It's not an error.
It is link:https://issues.apache.org/jira/browse/MSITE-286[officially ugly] though.