From 0ff7a9b29c13e15ae37e8e56f7eaa92ad1a9cf40 Mon Sep 17 00:00:00 2001 From: Istvan Toth Date: Wed, 17 Apr 2024 15:14:17 +0200 Subject: [PATCH] PHOENIX-7288 Add unshaded connector JARs to connectors assembly (#131) - also add new assembly artifact containing only the unshaded JARs - remove skip-phoenix5 build property - add skip-shaded-assembly build property --- phoenix5-connectors-assembly/pom.xml | 113 ++++++++++++++++-- .../src/build/components/phoenix5-jars.xml | 18 +-- .../build/components/phoenix5-shaded-jars.xml | 49 ++++++++ ...package-phoenix5-connectors-to-tar-all.xml | 1 + ...ge-phoenix5-connectors-to-tar-unshaded.xml | 37 ++++++ 5 files changed, 197 insertions(+), 21 deletions(-) create mode 100644 phoenix5-connectors-assembly/src/build/components/phoenix5-shaded-jars.xml create mode 100644 phoenix5-connectors-assembly/src/build/package-phoenix5-connectors-to-tar-unshaded.xml diff --git a/phoenix5-connectors-assembly/pom.xml b/phoenix5-connectors-assembly/pom.xml index ed8a56d9..c3f843c5 100644 --- a/phoenix5-connectors-assembly/pom.xml +++ b/phoenix5-connectors-assembly/pom.xml @@ -41,21 +41,13 @@ org.apache.phoenix phoenix5-hive - - org.apache.phoenix - phoenix5-hive-shaded - org.apache.phoenix phoenix5-spark org.apache.phoenix - phoenix5-spark-shaded - - - org.apache.phoenix - phoenix5-spark3-shaded + phoenix5-spark3 @@ -71,6 +63,26 @@ exec + + ln + ${project.basedir}/../phoenix5-hive/target + + -fnsv + + phoenix5-hive-${project.version}.jar + + + phoenix5-hive.jar + + + + + + hive-shaded without version + package + + exec + ln ${project.basedir}/../phoenix5-hive-shaded/target @@ -91,6 +103,26 @@ exec + + ln + ${project.basedir}/../phoenix5-spark/target + + -fnsv + + phoenix5-spark-${project.version}.jar + + + phoenix5-spark.jar + + + + + + spark-shaded without version + package + + exec + ln ${project.basedir}/../phoenix5-spark-shaded/target @@ -106,7 +138,7 @@ - spark3 without version + spark3-shaded without version package exec @@ -124,7 +156,27 @@ - + + + spark3 without version + package + + exec + + + ln + ${project.basedir}/../phoenix5-spark3/target + + -fnsv + + phoenix5-spark3-${project.version}.jar + + + phoenix5-spark3.jar + + + + @@ -137,7 +189,7 @@ single - ${skip-phoenix5} + ${skip-shaded-assembly} src/build/package-phoenix5-connectors-to-tar-all.xml @@ -146,8 +198,45 @@ false + + package-phoenix5-unshaded-to-tar + package + + single + + + + src/build/package-phoenix5-connectors-to-tar-unshaded.xml + + posix + + + + + shaded-assembly + + + !skip-shaded-assembly + + + + + org.apache.phoenix + phoenix5-hive-shaded + + + org.apache.phoenix + phoenix5-spark-shaded + + + org.apache.phoenix + phoenix5-spark3-shaded + + + + diff --git a/phoenix5-connectors-assembly/src/build/components/phoenix5-jars.xml b/phoenix5-connectors-assembly/src/build/components/phoenix5-jars.xml index ac02e2f9..2cbd49a2 100644 --- a/phoenix5-connectors-assembly/src/build/components/phoenix5-jars.xml +++ b/phoenix5-connectors-assembly/src/build/components/phoenix5-jars.xml @@ -22,27 +22,27 @@ - ${project.basedir}/../phoenix5-spark-shaded/target + ${project.basedir}/../phoenix5-spark/target / - phoenix5-spark-shaded-${project.version}.jar - phoenix5-spark-shaded.jar + phoenix5-spark-${project.version}.jar + phoenix5-spark.jar - ${project.basedir}/../phoenix5-spark3-shaded/target + ${project.basedir}/../phoenix5-spark3/target / - phoenix5-spark3-shaded-${project.version}.jar - phoenix5-spark3-shaded.jar + phoenix5-spark3-${project.version}.jar + phoenix5-spark3.jar - ${project.basedir}/../phoenix5-hive-shaded/target + ${project.basedir}/../phoenix5-hive/target / - phoenix5-hive-shaded-${project.version}.jar - phoenix5-hive-shaded.jar + phoenix5-hive-${project.version}.jar + phoenix5-hive.jar diff --git a/phoenix5-connectors-assembly/src/build/components/phoenix5-shaded-jars.xml b/phoenix5-connectors-assembly/src/build/components/phoenix5-shaded-jars.xml new file mode 100644 index 00000000..ac02e2f9 --- /dev/null +++ b/phoenix5-connectors-assembly/src/build/components/phoenix5-shaded-jars.xml @@ -0,0 +1,49 @@ + + + + + + ${project.basedir}/../phoenix5-spark-shaded/target + / + + phoenix5-spark-shaded-${project.version}.jar + phoenix5-spark-shaded.jar + + + + ${project.basedir}/../phoenix5-spark3-shaded/target + / + + phoenix5-spark3-shaded-${project.version}.jar + phoenix5-spark3-shaded.jar + + + + ${project.basedir}/../phoenix5-hive-shaded/target + / + + phoenix5-hive-shaded-${project.version}.jar + phoenix5-hive-shaded.jar + + + + diff --git a/phoenix5-connectors-assembly/src/build/package-phoenix5-connectors-to-tar-all.xml b/phoenix5-connectors-assembly/src/build/package-phoenix5-connectors-to-tar-all.xml index 867fd87d..2399a004 100644 --- a/phoenix5-connectors-assembly/src/build/package-phoenix5-connectors-to-tar-all.xml +++ b/phoenix5-connectors-assembly/src/build/package-phoenix5-connectors-to-tar-all.xml @@ -33,5 +33,6 @@ src/build/components/phoenix5-jars.xml + src/build/components/phoenix5-shaded-jars.xml \ No newline at end of file diff --git a/phoenix5-connectors-assembly/src/build/package-phoenix5-connectors-to-tar-unshaded.xml b/phoenix5-connectors-assembly/src/build/package-phoenix5-connectors-to-tar-unshaded.xml new file mode 100644 index 00000000..659e8413 --- /dev/null +++ b/phoenix5-connectors-assembly/src/build/package-phoenix5-connectors-to-tar-unshaded.xml @@ -0,0 +1,37 @@ + + + + + + unshaded-only + + tar.gz + + true + + + + src/build/components/phoenix5-jars.xml + + \ No newline at end of file