You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flume.apache.org by mp...@apache.org on 2019/11/24 18:44:27 UTC
[flume] 02/03: JDK 11: Exclude hbase-annotations module
This is an automated email from the ASF dual-hosted git repository.
mpercy pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/flume.git
commit bba1997705cb94393df69b793d75249ee689546f
Author: Michael Percy <mp...@fb.com>
AuthorDate: Sat Nov 23 20:50:22 2019 -0800
JDK 11: Exclude hbase-annotations module
The older hbase-annotations module messed around with the java.tools JAR
at build time, which no longer exists in JDK 9+. This is a build
workaround to exclude that annotations module so that we can build the
hbase sink with JDK 11.
n.b. I just copied what they did in SPARK-4455.
---
flume-ng-sinks/flume-ng-hbase-sink/pom.xml | 42 ++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/flume-ng-sinks/flume-ng-hbase-sink/pom.xml b/flume-ng-sinks/flume-ng-hbase-sink/pom.xml
index 071ce46..5f66e76 100644
--- a/flume-ng-sinks/flume-ng-hbase-sink/pom.xml
+++ b/flume-ng-sinks/flume-ng-hbase-sink/pom.xml
@@ -119,6 +119,13 @@
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<optional>true</optional>
+ <exclusions>
+ <exclusion>
+ <!-- hbase-annotations depends on tools.jar which was removed in JDK9 -->
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-annotations</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
@@ -126,6 +133,13 @@
<artifactId>hbase-client</artifactId>
<classifier>tests</classifier>
<scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <!-- hbase-annotations depends on tools.jar which was removed in JDK9 -->
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-annotations</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
@@ -133,6 +147,13 @@
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-server</artifactId>
<scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <!-- hbase-annotations depends on tools.jar which was removed in JDK9 -->
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-annotations</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
@@ -140,6 +161,13 @@
<artifactId>hbase-server</artifactId>
<classifier>tests</classifier>
<scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <!-- hbase-annotations depends on tools.jar which was removed in JDK9 -->
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-annotations</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<!-- There should be no need for Flume to include the following two
@@ -152,12 +180,26 @@
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-common</artifactId>
<optional>true</optional>
+ <exclusions>
+ <exclusion>
+ <!-- hbase-annotations depends on tools.jar which was removed in JDK9 -->
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-annotations</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-testing-util</artifactId>
<scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <!-- hbase-annotations depends on tools.jar which was removed in JDK9 -->
+ <groupId>org.apache.hbase</groupId>
+ <artifactId>hbase-annotations</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>