From 68f14c19ff79e36b17e99c7e848c19ce5e0164d5 Mon Sep 17 00:00:00 2001 From: Sakthi Date: Thu, 2 May 2019 13:37:31 -0700 Subject: [PATCH] HBASE-22345 REST Server must have specific version of javax.annotations available at runtime Rest Server throws NoClassDefFoundError : javax/annotation/Priority after buiding with JDK8 and running on JDK8 Signed-off-by: Sean Busbey --- hbase-assembly/src/main/assembly/client.xml | 1 - hbase-assembly/src/main/assembly/hadoop-two-compat.xml | 1 - hbase-protocol-shaded/pom.xml | 3 ++- hbase-shaded/hbase-shaded-client/pom.xml | 6 +++--- hbase-shaded/pom.xml | 6 +++--- pom.xml | 10 +++++----- 6 files changed, 13 insertions(+), 14 deletions(-) diff --git a/hbase-assembly/src/main/assembly/client.xml b/hbase-assembly/src/main/assembly/client.xml index acaea0d4e89..884ac2a2cbf 100644 --- a/hbase-assembly/src/main/assembly/client.xml +++ b/hbase-assembly/src/main/assembly/client.xml @@ -44,7 +44,6 @@ - javax.annotation:javax.annotation-api com.sun.xml.ws:jaxws-ri org.jruby:jruby-complete diff --git a/hbase-assembly/src/main/assembly/hadoop-two-compat.xml b/hbase-assembly/src/main/assembly/hadoop-two-compat.xml index 9aada987189..05e2fc95652 100644 --- a/hbase-assembly/src/main/assembly/hadoop-two-compat.xml +++ b/hbase-assembly/src/main/assembly/hadoop-two-compat.xml @@ -67,7 +67,6 @@ - javax.annotation:javax.annotation-api com.sun.xml.ws:jaxws-ri org.jruby:jruby-complete diff --git a/hbase-protocol-shaded/pom.xml b/hbase-protocol-shaded/pom.xml index 3cf9d32f1cf..749c63decf9 100644 --- a/hbase-protocol-shaded/pom.xml +++ b/hbase-protocol-shaded/pom.xml @@ -162,7 +162,8 @@ - + javax.annotation:javax.annotation-api diff --git a/hbase-shaded/hbase-shaded-client/pom.xml b/hbase-shaded/hbase-shaded-client/pom.xml index 96602d3d029..414ddab5918 100644 --- a/hbase-shaded/hbase-shaded-client/pom.xml +++ b/hbase-shaded/hbase-shaded-client/pom.xml @@ -54,9 +54,9 @@ - - javax.annotation:javax.annotation-api - + javax.activation:javax.activation-api - javax.annotation:javax.annotation-api - + javax.activation:javax.activation-api diff --git a/pom.xml b/pom.xml index 11b3df4dcc4..ee85e939fbf 100755 --- a/pom.xml +++ b/pom.xml @@ -1991,6 +1991,11 @@ javax.activation 1.2.0 + + javax.annotation + javax.annotation-api + 1.2 + org.eclipse.jetty jetty-server @@ -2304,11 +2309,6 @@ - - javax.annotation - javax.annotation-api - 1.3.2 - com.sun.xml.ws jaxws-ri