zentol commented on code in PR #2:
URL: 
https://github.com/apache/flink-connector-cassandra/pull/2#discussion_r1031927029


##########
flink-connector-cassandra/pom.xml:
##########
@@ -0,0 +1,367 @@
+<?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>org.apache.flink</groupId>
+               <artifactId>flink-connector-cassandra-parent</artifactId>
+               <version>3.0-SNAPSHOT</version>
+       </parent>
+
+       
<artifactId>flink-connector-cassandra_${scala.binary.version}</artifactId>
+       <version>3.0-SNAPSHOT</version>
+       <name>Flink : Connectors : Cassandra</name>
+       <packaging>jar</packaging>
+
+       <!-- Allow users to pass custom connector versions -->
+       <properties>
+               <flink.shaded.version>15.0</flink.shaded.version>
+               <scala.binary.version>2.12</scala.binary.version>
+               <scala-library.version>2.12.7</scala-library.version>
+               <slf4j.version>1.7.36</slf4j.version>
+               <log4j.version>2.17.1</log4j.version>
+               <junit5.version>5.8.1</junit5.version>
+               <assertj.version>3.23.1</assertj.version>
+               <archunit.version>0.22.0</archunit.version>
+               <testcontainers.version>1.17.2</testcontainers.version>
+               <mockito.version>2.21.0</mockito.version>
+               <byte-buddy.version>1.12.10</byte-buddy.version>
+               <findbugs.version>1.3.9</findbugs.version>
+
+               <!--driver 3.x works with 3.x and 4.x versions of Cassandra but 
driver 4.x is a complete refactoring with different API-->
+               <driver.version>3.11.2</driver.version>
+               <guava.version>19.0</guava.version>
+       </properties>
+
+       <dependencies>
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-shaded-force-shading</artifactId>
+                       <version>${flink.shaded.version}</version>
+               </dependency>
+
+               <!-- Core -->
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-streaming-java</artifactId>
+                       <version>${flink.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       
<artifactId>flink-streaming-scala_${scala.binary.version}</artifactId>
+                       <version>${flink.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.scala-lang</groupId>
+                       <artifactId>scala-library</artifactId>
+                       <scope>provided</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-table-api-java-bridge</artifactId>
+                       <version>${flink.version}</version>
+                       <scope>provided</scope>
+                       <optional>true</optional>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-api</artifactId>
+                       <version>${log4j.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+
+               <!-- Cassandra dependencies -->
+
+               <!--Using datastax provided shaded driver which includes 
relocated netty-->
+               
<!--https://docs.datastax.com/en/developer/java-driver/3.1/manual/shaded_jar/-->
+               <dependency>
+                       <groupId>com.datastax.cassandra</groupId>
+                       <artifactId>cassandra-driver-core</artifactId>
+                       <version>${driver.version}</version>
+                       <classifier>shaded</classifier>
+                       <exclusions>
+                               <!--Because the shaded JAR uses netty original 
POM, we still need to exclude netty explicitly-->
+                               <exclusion>
+                                       <groupId>io.netty</groupId>
+                                       <artifactId>*</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.slf4j</groupId>
+                                       
<artifactId>log4j-over-slf4j</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>ch.qos.logback</groupId>
+                                       <artifactId>logback-classic</artifactId>
+                               </exclusion>
+                               <!--The next 3 are optional dependencies and 
are unused-->
+                               <exclusion>
+                                       <groupId>com.github.jnr</groupId>
+                                       <artifactId>jnr-ffi</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>com.github.jnr</groupId>
+                                       <artifactId>jnr-posix</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>com.fasterxml.jackson.core</groupId>
+                                       
<artifactId>jackson-databind</artifactId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
+
+               <dependency>
+                       <groupId>com.datastax.cassandra</groupId>
+                       <artifactId>cassandra-driver-mapping</artifactId>
+                       <version>${driver.version}</version>
+                       <exclusions>
+                               <!--use the shaded driver above-->
+                               <exclusion>
+                                       
<groupId>com.datastax.cassandra</groupId>
+                                       
<artifactId>cassandra-driver-core</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.slf4j</groupId>
+                                       
<artifactId>log4j-over-slf4j</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>ch.qos.logback</groupId>
+                                       <artifactId>logback-classic</artifactId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
+
+               <dependency>
+                       <groupId>com.google.guava</groupId>
+                       <artifactId>guava</artifactId>
+                       <version>${guava.version}</version>
+               </dependency>
+
+               <!-- Logging API -->
+               <dependency>
+                       <groupId>org.slf4j</groupId>
+                       <artifactId>slf4j-api</artifactId>
+                       <scope>provided</scope>
+               </dependency>
+
+               <!-- 'javax.annotation' classes like '@Nullable' -->
+               <dependency>
+                       <groupId>com.google.code.findbugs</groupId>
+                       <artifactId>jsr305</artifactId>
+                       <version>${findbugs.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+
+               <!-- Test dependencies -->
+
+               <dependency>
+                       <groupId>org.assertj</groupId>
+                       <artifactId>assertj-core</artifactId>
+                       <version>${assertj.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-core</artifactId>
+                       <version>${mockito.version}</version>
+                       <type>jar</type>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.testcontainers</groupId>
+                       <artifactId>junit-jupiter</artifactId>
+                       <version>${testcontainers.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>net.bytebuddy</groupId>
+                       <artifactId>byte-buddy</artifactId>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-slf4j-impl</artifactId>
+                       <version>${log4j.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-core</artifactId>
+                       <version>${log4j.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <!-- API bridge between log4j 1 and 2 -->
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-1.2-api</artifactId>

Review Comment:
   Does the cassandra code rely on the Log4j 1 APIs? If not, then this 
shouldn't be required.



##########
flink-connector-cassandra/pom.xml:
##########
@@ -0,0 +1,367 @@
+<?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>org.apache.flink</groupId>
+               <artifactId>flink-connector-cassandra-parent</artifactId>
+               <version>3.0-SNAPSHOT</version>
+       </parent>
+
+       
<artifactId>flink-connector-cassandra_${scala.binary.version}</artifactId>
+       <version>3.0-SNAPSHOT</version>
+       <name>Flink : Connectors : Cassandra</name>
+       <packaging>jar</packaging>
+
+       <!-- Allow users to pass custom connector versions -->
+       <properties>
+               <flink.shaded.version>15.0</flink.shaded.version>
+               <scala.binary.version>2.12</scala.binary.version>
+               <scala-library.version>2.12.7</scala-library.version>
+               <slf4j.version>1.7.36</slf4j.version>
+               <log4j.version>2.17.1</log4j.version>
+               <junit5.version>5.8.1</junit5.version>
+               <assertj.version>3.23.1</assertj.version>
+               <archunit.version>0.22.0</archunit.version>
+               <testcontainers.version>1.17.2</testcontainers.version>
+               <mockito.version>2.21.0</mockito.version>
+               <byte-buddy.version>1.12.10</byte-buddy.version>
+               <findbugs.version>1.3.9</findbugs.version>
+
+               <!--driver 3.x works with 3.x and 4.x versions of Cassandra but 
driver 4.x is a complete refactoring with different API-->
+               <driver.version>3.11.2</driver.version>
+               <guava.version>19.0</guava.version>
+       </properties>
+
+       <dependencies>
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-shaded-force-shading</artifactId>
+                       <version>${flink.shaded.version}</version>
+               </dependency>
+
+               <!-- Core -->
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-streaming-java</artifactId>
+                       <version>${flink.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       
<artifactId>flink-streaming-scala_${scala.binary.version}</artifactId>
+                       <version>${flink.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.scala-lang</groupId>
+                       <artifactId>scala-library</artifactId>
+                       <scope>provided</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-table-api-java-bridge</artifactId>
+                       <version>${flink.version}</version>
+                       <scope>provided</scope>
+                       <optional>true</optional>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-api</artifactId>
+                       <version>${log4j.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+
+               <!-- Cassandra dependencies -->
+
+               <!--Using datastax provided shaded driver which includes 
relocated netty-->
+               
<!--https://docs.datastax.com/en/developer/java-driver/3.1/manual/shaded_jar/-->
+               <dependency>
+                       <groupId>com.datastax.cassandra</groupId>
+                       <artifactId>cassandra-driver-core</artifactId>
+                       <version>${driver.version}</version>
+                       <classifier>shaded</classifier>
+                       <exclusions>
+                               <!--Because the shaded JAR uses netty original 
POM, we still need to exclude netty explicitly-->
+                               <exclusion>
+                                       <groupId>io.netty</groupId>
+                                       <artifactId>*</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.slf4j</groupId>
+                                       
<artifactId>log4j-over-slf4j</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>ch.qos.logback</groupId>
+                                       <artifactId>logback-classic</artifactId>
+                               </exclusion>
+                               <!--The next 3 are optional dependencies and 
are unused-->
+                               <exclusion>
+                                       <groupId>com.github.jnr</groupId>
+                                       <artifactId>jnr-ffi</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>com.github.jnr</groupId>
+                                       <artifactId>jnr-posix</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       
<groupId>com.fasterxml.jackson.core</groupId>
+                                       
<artifactId>jackson-databind</artifactId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
+
+               <dependency>
+                       <groupId>com.datastax.cassandra</groupId>
+                       <artifactId>cassandra-driver-mapping</artifactId>
+                       <version>${driver.version}</version>
+                       <exclusions>
+                               <!--use the shaded driver above-->
+                               <exclusion>
+                                       
<groupId>com.datastax.cassandra</groupId>
+                                       
<artifactId>cassandra-driver-core</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>org.slf4j</groupId>
+                                       
<artifactId>log4j-over-slf4j</artifactId>
+                               </exclusion>
+                               <exclusion>
+                                       <groupId>ch.qos.logback</groupId>
+                                       <artifactId>logback-classic</artifactId>
+                               </exclusion>
+                       </exclusions>
+               </dependency>
+
+               <dependency>
+                       <groupId>com.google.guava</groupId>
+                       <artifactId>guava</artifactId>
+                       <version>${guava.version}</version>
+               </dependency>
+
+               <!-- Logging API -->
+               <dependency>
+                       <groupId>org.slf4j</groupId>
+                       <artifactId>slf4j-api</artifactId>
+                       <scope>provided</scope>
+               </dependency>
+
+               <!-- 'javax.annotation' classes like '@Nullable' -->
+               <dependency>
+                       <groupId>com.google.code.findbugs</groupId>
+                       <artifactId>jsr305</artifactId>
+                       <version>${findbugs.version}</version>
+                       <scope>provided</scope>
+               </dependency>
+
+               <!-- Test dependencies -->
+
+               <dependency>
+                       <groupId>org.assertj</groupId>
+                       <artifactId>assertj-core</artifactId>
+                       <version>${assertj.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-core</artifactId>
+                       <version>${mockito.version}</version>
+                       <type>jar</type>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.testcontainers</groupId>
+                       <artifactId>junit-jupiter</artifactId>
+                       <version>${testcontainers.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>net.bytebuddy</groupId>
+                       <artifactId>byte-buddy</artifactId>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-slf4j-impl</artifactId>
+                       <version>${log4j.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-core</artifactId>
+                       <version>${log4j.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <!-- API bridge between log4j 1 and 2 -->
+                       <groupId>org.apache.logging.log4j</groupId>
+                       <artifactId>log4j-1.2-api</artifactId>
+                       <version>${log4j.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.apache.flink</groupId>
+                       <artifactId>flink-test-utils-junit</artifactId>
+                       <version>${flink.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.testcontainers</groupId>
+                       <artifactId>cassandra</artifactId>
+                       <version>${testcontainers.version}</version>
+                       <scope>test</scope>
+                       <!-- For dependency convergence to avoid forcing all 
the conflicting versions
+                       of cassandra-driver-core transitive dependencies -->
+                       <exclusions>
+                               <exclusion>
+                                               
<groupId>com.datastax.cassandra</groupId>
+                                               
<artifactId>cassandra-driver-core</artifactId>

Review Comment:
   ```suggestion
                                        
<groupId>com.datastax.cassandra</groupId>
                                        
<artifactId>cassandra-driver-core</artifactId>
   ```



##########
NOTICE:
##########
@@ -13,4 +13,10 @@ DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 
WHATSOEVER RESULTING F
 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING 
OUT OF OR IN CONNECTION WITH THE
 USE OR PERFORMANCE OF THIS SOFTWARE.
 
+This project bundles the following dependencies under the Apache Software 
License 2.0. (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+- com.datastax.cassandra:cassandra-driver-core:shaded:3.11.2
+- com.datastax.cassandra:cassandra-driver-mapping:3.11.2
+- com.google.guava:guava:19.0
+

Review Comment:
   ```suggestion
   ```
   This is simply not correct. The NOTICE in the root directory is the notice 
for the source release, which doesn't bundle anything.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to