flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpe...@apache.org
Subject [flume] 02/03: JDK 11: Exclude hbase-annotations module
Date Sun, 24 Nov 2019 18:44:27 GMT
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 <mpercy@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>


Mime
View raw message