Repository: hbase Updated Branches: refs/heads/branch-1 d1ebc3d2a -> e50020750 refs/heads/branch-1.2 7e473dded -> 1a477b115 refs/heads/branch-1.3 0d19ec9a5 -> 9dc7ec11e refs/heads/branch-1.4 8b42c5fbd -> f778a952a refs/heads/branch-2 3787c7295 -> 98da781ec refs/heads/branch-2.0 efa54012b -> d9252da73 refs/heads/branch-2.1 798cb1d79 -> 57d8778bf refs/heads/master bb3494134 -> 23d54f858
HBASE-21074 JDK7 builds need to be done with TLSv1.2. Signed-off-by: Michael Stack <st...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e5002075 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e5002075 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e5002075 Branch: refs/heads/branch-1 Commit: e500207503bb84eb91713d2362b7850657e44c81 Parents: d1ebc3d Author: Sean Busbey <bus...@apache.org> Authored: Sun Aug 19 22:29:46 2018 -0500 Committer: Sean Busbey <bus...@apache.org> Committed: Tue Aug 21 09:03:34 2018 -0500 ---------------------------------------------------------------------- dev-support/hbase-personality.sh | 3 +++ dev-support/hbase_nightly_source-artifact.sh | 3 ++- src/main/asciidoc/_chapters/developer.adoc | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/e5002075/dev-support/hbase-personality.sh ---------------------------------------------------------------------- diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index 0b19690..1a7ec0b 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -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}" http://git-wip-us.apache.org/repos/asf/hbase/blob/e5002075/dev-support/hbase_nightly_source-artifact.sh ---------------------------------------------------------------------- diff --git a/dev-support/hbase_nightly_source-artifact.sh b/dev-support/hbase_nightly_source-artifact.sh index cde3b30..2e23994 100755 --- a/dev-support/hbase_nightly_source-artifact.sh +++ b/dev-support/hbase_nightly_source-artifact.sh @@ -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 http://git-wip-us.apache.org/repos/asf/hbase/blob/e5002075/src/main/asciidoc/_chapters/developer.adoc ---------------------------------------------------------------------- diff --git a/src/main/asciidoc/_chapters/developer.adoc b/src/main/asciidoc/_chapters/developer.adoc index e41597c..35dc481 100644 --- a/src/main/asciidoc/_chapters/developer.adoc +++ b/src/main/asciidoc/_chapters/developer.adoc @@ -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.