From e8767ea49538b72befe4581d4e44ae50dc332728 Mon Sep 17 00:00:00 2001 From: Sean Busbey Date: Wed, 30 Jan 2019 02:20:33 -0600 Subject: [PATCH] HBASE-21808 Ensure we can build with JDK11 targetting JDK8 Signed-off-by: Josh Elser (cherry picked from commit 5784a09fff10f5ce927d489559331345ff9045f5) --- hbase-assembly/pom.xml | 1 + hbase-assembly/src/main/assembly/client.xml | 5 +++- .../src/main/assembly/hadoop-two-compat.xml | 5 +++- hbase-it/pom.xml | 15 +++++++++-- hbase-protocol-shaded/pom.xml | 14 +++++++++++ hbase-protocol/pom.xml | 12 +++++++++ hbase-shaded/hbase-shaded-client/pom.xml | 2 ++ hbase-shaded/pom.xml | 2 ++ pom.xml | 25 +++++++++++++++++-- 9 files changed, 75 insertions(+), 6 deletions(-) diff --git a/hbase-assembly/pom.xml b/hbase-assembly/pom.xml index 6b705af4242..4005947e31d 100644 --- a/hbase-assembly/pom.xml +++ b/hbase-assembly/pom.xml @@ -138,6 +138,7 @@ unpack-dependencies + pom true **\/NOTICE,**\/NOTICE.txt diff --git a/hbase-assembly/src/main/assembly/client.xml b/hbase-assembly/src/main/assembly/client.xml index c875b9534fb..acaea0d4e89 100644 --- a/hbase-assembly/src/main/assembly/client.xml +++ b/hbase-assembly/src/main/assembly/client.xml @@ -42,8 +42,11 @@ lib - + + javax.annotation:javax.annotation-api + com.sun.xml.ws:jaxws-ri + org.jruby:jruby-complete com.sun.jersey:* com.sun.jersey.contribs:* diff --git a/hbase-assembly/src/main/assembly/hadoop-two-compat.xml b/hbase-assembly/src/main/assembly/hadoop-two-compat.xml index d713f9e34d2..feb6e2a59ea 100644 --- a/hbase-assembly/src/main/assembly/hadoop-two-compat.xml +++ b/hbase-assembly/src/main/assembly/hadoop-two-compat.xml @@ -63,8 +63,11 @@ false - + + javax.annotation:javax.annotation-api + com.sun.xml.ws:jaxws-ri + org.jruby:jruby-complete com.sun.jersey:* com.sun.jersey.contribs:* diff --git a/hbase-it/pom.xml b/hbase-it/pom.xml index ef2603b1970..8985bdce9f7 100644 --- a/hbase-it/pom.xml +++ b/hbase-it/pom.xml @@ -293,8 +293,19 @@ true - - + + build-with-jdk11 + + [1.11,) + + + + com.sun.xml.ws + jaxws-ri + pom + + + hadoop-2.0 diff --git a/hbase-protocol-shaded/pom.xml b/hbase-protocol-shaded/pom.xml index 5af1f3b9572..3c9162ebeb2 100644 --- a/hbase-protocol-shaded/pom.xml +++ b/hbase-protocol-shaded/pom.xml @@ -153,6 +153,8 @@ + + javax.annotation:javax.annotation-api org.apache.hbase.thirdparty:* @@ -266,5 +268,17 @@ true + + build-with-jdk11 + + [1.11,) + + + + javax.annotation + javax.annotation-api + + + diff --git a/hbase-protocol/pom.xml b/hbase-protocol/pom.xml index 2952d87dd54..360b2d4e009 100644 --- a/hbase-protocol/pom.xml +++ b/hbase-protocol/pom.xml @@ -135,5 +135,17 @@ true + + build-with-jdk11 + + [1.11,) + + + + javax.annotation + javax.annotation-api + + + diff --git a/hbase-shaded/hbase-shaded-client/pom.xml b/hbase-shaded/hbase-shaded-client/pom.xml index 8063782a136..8dbcdaecceb 100644 --- a/hbase-shaded/hbase-shaded-client/pom.xml +++ b/hbase-shaded/hbase-shaded-client/pom.xml @@ -54,6 +54,8 @@ + + javax.annotation:javax.annotation-api + javax.annotation:javax.annotation-api org.apache.hadoop:* diff --git a/pom.xml b/pom.xml index 22332f655be..c6adaa4af43 100755 --- a/pom.xml +++ b/pom.xml @@ -1478,7 +1478,7 @@ 1.8 3.3.0 3.0.0 - 3.6.1 + 3.8.0 3.0.1 2.10 2.5.2 @@ -2255,7 +2255,7 @@ build-with-jdk8 - 1.8 + [1.8,) @@ -2283,6 +2283,27 @@ + + build-with-jdk11 + + [1.11,) + + + + + javax.annotation + javax.annotation-api + 1.3.2 + + + com.sun.xml.ws + jaxws-ri + 2.3.1 + pom + + + + jenkins.patch