From ab5cf7de3b6d9738fef2b320dc95d3019861bfe2 Mon Sep 17 00:00:00 2001 From: Vikas Balani <123360241+vbalani002@users.noreply.github.com> Date: Thu, 9 May 2024 14:17:28 +0530 Subject: [PATCH] Test: Create slim jars for hive --- hive-exec-shaded/pom.xml | 129 +++++++++++++++++++++++++++++++++++++++ hive-exec-slim/pom.xml | 92 ++++++++++++++++++++++++++++ pom.xml | 2 + 3 files changed, 223 insertions(+) create mode 100644 hive-exec-shaded/pom.xml create mode 100644 hive-exec-slim/pom.xml diff --git a/hive-exec-shaded/pom.xml b/hive-exec-shaded/pom.xml new file mode 100644 index 000000000..095fbb0fe --- /dev/null +++ b/hive-exec-shaded/pom.xml @@ -0,0 +1,129 @@ + + + + + 4.0.0 + + + io.confluent + kafka-connect-storage-common-parent + 11.3.0-SNAPSHOT + + + kafka-connect-storage-common-hive-exec-shaded + jar + kafka-connect-storage-common-hive-exec-shaded + + hive-exec reshaded to fix CVEs and remove vulnerable dependencies + 2020 + + + 4.0.0 + + + + + + maven-jar-plugin + + + org.apache.maven.plugins + maven-shade-plugin + 3.5.0 + + + package + + shade + + + + + org.apache.hive:hive-exec + com.google.protobuf:protobuf-java + org.apache.calcite.avatica:avatica + + + + + org.apache.hive:hive-exec + + ** + + + META-INF/maven/com.google.guava/** + com/google/protobuf/** + google/protobuf/** + META-INF/maven/org.apache.calcite.avatica/** + org/apache/calcite/avatica/** + + + + org.apache.calcite.avatica:avatica + + ** + + + + org/slf4j/** + META-INF/** + google/protobuf/** + + + + com.google.protobuf:protobuf-java + + ** + + + + META-INF/MANIFEST.MF + + + + io.confluent:* + + ** + + + + + + + + + + + + + org.apache.hive + hive-exec + ${hive.exec.version} + + + com.google.protobuf + protobuf-java + ${protobuf.version} + + + org.apache.calcite.avatica + avatica + 1.13.0 + + + org.apache.calcite.avatica + avatica-core + + + + + diff --git a/hive-exec-slim/pom.xml b/hive-exec-slim/pom.xml new file mode 100644 index 000000000..78819b338 --- /dev/null +++ b/hive-exec-slim/pom.xml @@ -0,0 +1,92 @@ + + + + + 4.0.0 + + + io.confluent + kafka-connect-storage-common-parent + 11.3.0-SNAPSHOT + + + kafka-connect-storage-common-hive-exec-slim + jar + kafka-connect-storage-common-hive-exec-slim + + hive-exec fat jar pruned to remove vulnerable dependencies + 2020 + + + 4.0.0 + + + + org.apache.hive + hive-exec + ${hive.exec.version} + + + + + + maven-jar-plugin + + + org.apache.maven.plugins + maven-shade-plugin + 3.5.0 + + + package + + shade + + + false + + + org.apache.hive:hive-exec + + + + + + + + + org.apache.hive:hive-exec + + ** + + + META-INF/maven/com.google.guava/** + com/google/protobuf/** + google/protobuf/** + META-INF/maven/org.apache.calcite.avatica/** + org/apache/calcite/avatica/** + + + + io.confluent:* + + ** + + + + + + + + + + diff --git a/pom.xml b/pom.xml index c2b33e406..265f3c1af 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,8 @@ hadoop-shaded-guava hadoop-shaded-protobuf package-kafka-connect-storage-common + hive-exec-shaded + hive-exec-slim