ferenc-csaky commented on code in PR #2:
URL: 
https://github.com/apache/flink-connector-hbase/pull/2#discussion_r1037073397


##########
pom.xml:
##########
@@ -0,0 +1,540 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0";
+                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+                xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+
+       <modelVersion>4.0.0</modelVersion>
+
+       <parent>
+               <groupId>io.github.zentol.flink</groupId>
+               <artifactId>flink-connector-parent</artifactId>
+               <version>1.0</version>
+       </parent>
+
+       <groupId>org.apache.flink</groupId>
+       <artifactId>flink-connector-hbase-parent</artifactId>
+       <version>1.0-SNAPSHOT</version>
+
+       <name>Flink : Connectors : HBase Parent</name>
+       <packaging>pom</packaging>
+       <url>https://flink.apache.org</url>
+       <inceptionYear>2022</inceptionYear>
+
+       <licenses>
+               <license>
+                       <name>The Apache Software License, Version 2.0</name>
+                       
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
+                       <distribution>repo</distribution>
+               </license>
+       </licenses>
+
+       <scm>
+               <url>https://github.com/apache/flink-connector-hbase</url>
+               
<connection>g...@github.com:apache/flink-connector-hbase.git</connection>
+               
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/flink-connector-hbase.git</developerConnection>
+       </scm>
+
+       <properties>
+               <flink.version>1.16.0</flink.version>
+               <flink.shaded.version>15.0</flink.shaded.version>
+
+               <scala.binary.version>2.12</scala.binary.version>
+               <scala.version>2.12.7</scala.version>
+
+               <assertj.version>3.21.0</assertj.version>
+               <hadoop.version>2.8.5</hadoop.version>
+               <hbase1.version>1.4.3</hbase1.version>
+               <hbase2.version>2.2.3</hbase2.version>
+               <httpclient.version>4.5.13</httpclient.version>
+               <httpcore.version>4.4.14</httpcore.version>
+               <jackson.version>2.13.4.20221013</jackson.version>
+               <jsr305.version>1.3.9</jsr305.version>
+               <junit4.version>4.13.2</junit4.version>
+               <junit5.version>5.8.1</junit5.version>
+               <kryo.verison>2.24.0</kryo.verison>
+               <netty.version>4.1.70.Final</netty.version>
+               <zookeeper.version>3.4.14</zookeeper.version>
+
+               <slf4j.version>1.7.36</slf4j.version>
+               <log4j.version>2.17.2</log4j.version>
+
+               <!-- For directory plugin -->
+               
<flink.parent.artifactId>flink-connector-hbase-parent</flink.parent.artifactId>
+       </properties>
+
+       <modules>
+               <module>flink-connector-hbase-base</module>
+               <module>flink-connector-hbase-1.4</module>
+               <module>flink-connector-hbase-2.2</module>
+               <module>flink-sql-connector-hbase-1.4</module>
+               <module>flink-sql-connector-hbase-2.2</module>
+       </modules>
+
+       <dependencies>
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-shaded-force-shading</artifactId>
+               </dependency>
+
+               <!-- Test dependencies -->
+               <dependency>
+                       <groupId>org.junit.jupiter</groupId>
+                       <artifactId>junit-jupiter</artifactId>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.assertj</groupId>
+                       <artifactId>assertj-core</artifactId>
+                       <scope>test</scope>
+               </dependency>
+
+               <!-- Tests will have log4j as the default logging framework 
available -->
+               <dependency>
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-slf4j-impl</artifactId>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-api</artifactId>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-core</artifactId>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <!-- API bridge between log4j 1 and 2 -->
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-1.2-api</artifactId>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-test-utils</artifactId>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
+
+       <dependencyManagement>
+               <dependencies>
+                       <dependency>
+                               <groupId>org.apache.flink</groupId>
+                               <artifactId>flink-core</artifactId>
+                               <version>${flink.version}</version>
+                       </dependency>
+
+                       <dependency>
+                               <groupId>org.apache.flink</groupId>
+                               <artifactId>flink-streaming-java</artifactId>
+                               <version>${flink.version}</version>
+                       </dependency>
+
+                       <dependency>
+                               <groupId>org.apache.flink</groupId>
+                               <artifactId>flink-table-common</artifactId>
+                               <version>${flink.version}</version>
+                               <type>test-jar</type>
+                       </dependency>
+
+                       <dependency>
+                               <groupId>org.apache.flink</groupId>
+                               
<artifactId>flink-table-api-java-bridge</artifactId>
+                               <version>${flink.version}</version>
+                       </dependency>
+
+                       <dependency>
+                               <groupId>org.apache.flink</groupId>
+                               
<artifactId>flink-table-planner_${scala.binary.version}</artifactId>
+                               <version>${flink.version}</version>
+                       </dependency>
+
+                       <dependency>
+                               <groupId>org.apache.flink</groupId>
+                               
<artifactId>flink-table-planner_${scala.binary.version}</artifactId>
+                               <version>${flink.version}</version>
+                               <type>test-jar</type>
+                       </dependency>
+
+                       <dependency>
+                               <groupId>org.apache.flink</groupId>
+                               
<artifactId>flink-hadoop-compatibility_${scala.binary.version}</artifactId>
+                               <version>${flink.version}</version>
+                       </dependency>
+
+                       <dependency>
+                               <groupId>org.apache.flink</groupId>
+                               
<artifactId>flink-shaded-force-shading</artifactId>
+                               <version>${flink.shaded.version}</version>
+                       </dependency>
+
+                       <dependency>
+                               <groupId>org.apache.flink</groupId>
+                               <artifactId>flink-test-utils</artifactId>
+                               <version>${flink.version}</version>
+                       </dependency>
+
+                       <dependency>
+                               <groupId>org.apache.hadoop</groupId>
+                               <artifactId>hadoop-common</artifactId>
+                               <version>${hadoop.version}</version>
+                               <exclusions>
+                                       <exclusion>
+                                               <groupId>commons-cli</groupId>
+                                               
<artifactId>commons-cli</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>commons-codec</groupId>
+                                               
<artifactId>commons-codec</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>commons-collections</groupId>
+                                               
<artifactId>commons-collections</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>commons-io</groupId>
+                                               
<artifactId>commons-io</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>commons-lang</groupId>
+                                               
<artifactId>commons-lang</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>commons-logging</groupId>
+                                               
<artifactId>commons-logging</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>org.apache.commons</groupId>
+                                               
<artifactId>commons-math3</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>org.apache.commons</groupId>
+                                               
<artifactId>commons-compress</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>org.codehaus.jackson</groupId>
+                                               
<artifactId>jackson-jaxrs</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>org.codehaus.jackson</groupId>
+                                               
<artifactId>jackson-xc</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>org.codehaus.jackson</groupId>
+                                               
<artifactId>jackson-core-asl</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>org.codehaus.jackson</groupId>
+                                               
<artifactId>jackson-mapper-asl</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>org.xerial.snappy</groupId>
+                                               
<artifactId>snappy-java</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>log4j</groupId>
+                                               <artifactId>log4j</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>org.slf4j</groupId>
+                                               
<artifactId>slf4j-log4j12</artifactId>
+                                       </exclusion>
+                               </exclusions>
+                       </dependency>
+
+                       <dependency>
+                               <groupId>org.apache.hadoop</groupId>
+                               <artifactId>hadoop-hdfs</artifactId>
+                               <version>${hadoop.version}</version>
+                               <type>test-jar</type>
+                               <exclusions>
+                                       <exclusion>
+                                               <groupId>log4j</groupId>
+                                               <artifactId>log4j</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>org.slf4j</groupId>
+                                               
<artifactId>slf4j-log4j12</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>com.google.guava</groupId>
+                                               <artifactId>guava</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>commons-cli</groupId>
+                                               
<artifactId>commons-cli</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>commons-codec</groupId>
+                                               
<artifactId>commons-codec</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>commons-io</groupId>
+                                               
<artifactId>commons-io</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>commons-logging</groupId>
+                                               
<artifactId>commons-logging</artifactId>
+                                       </exclusion>
+                               </exclusions>
+                       </dependency>
+
+                       <dependency>
+                               <groupId>org.apache.hadoop</groupId>
+                               <artifactId>hadoop-minicluster</artifactId>
+                               <version>${hadoop.version}</version>
+                               <exclusions>
+                                       <exclusion>
+                                               <groupId>jdk.tools</groupId>
+                                               
<artifactId>jdk.tools</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>log4j</groupId>
+                                               <artifactId>log4j</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>org.slf4j</groupId>
+                                               
<artifactId>slf4j-log4j12</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>com.google.guava</groupId>
+                                               <artifactId>guava</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>commons-io</groupId>
+                                               
<artifactId>commons-io</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>commons-logging</groupId>
+                                               
<artifactId>commons-logging</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>commons-cli</groupId>
+                                               
<artifactId>commons-cli</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>commons-codec</groupId>
+                                               
<artifactId>commons-codec</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>org.apache.commons</groupId>
+                                               
<artifactId>commons-compress</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>org.apache.commons</groupId>
+                                               
<artifactId>commons-math3</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>org.apache.hadoop</groupId>
+                                               
<artifactId>hadoop-annotations</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               
<groupId>org.apache.zookeeper</groupId>
+                                               
<artifactId>zookeeper</artifactId>
+                                       </exclusion>
+                                       <exclusion>
+                                               <groupId>org.javassist</groupId>
+                                               
<artifactId>javassist</artifactId>
+                                       </exclusion>
+                               </exclusions>
+                       </dependency>
+
+                       <dependency>
+                               <!-- HBase only works with Zookeper 3.4 -->
+                               <groupId>org.apache.zookeeper</groupId>
+                               <artifactId>zookeeper</artifactId>
+                               <version>${zookeeper.version}</version>
+                       </dependency>
+
+                       <dependency>
+                               <groupId>io.netty</groupId>
+                               <artifactId>netty-all</artifactId>
+                               <version>${netty.version}</version>
+                       </dependency>
+
+                       <!-- Flink ArchUnit -->
+                       <dependency>
+                               <groupId>org.apache.flink</groupId>
+                               
<artifactId>flink-architecture-tests-test</artifactId>
+                               <version>${flink.version}</version>
+                       </dependency>
+
+                       <!-- For dependency convergence -->

Review Comment:
   Yeah, I spent quite some time to find the min. set of deps that has to be 
defined to achieve dependency convergence. So unfortunately, all of the 
explicitly defined dep. versions are required at this point. I expect that we 
will be able to reduce it after dropping the HBase 1.x connector.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to