From 7e66511c731f9827bb6c7f45981da797852c51d8 Mon Sep 17 00:00:00 2001
From: moke-HU <25567926679@qq.com>
Date: Tue, 18 Aug 2026 21:21:32 +0800
Subject: [PATCH] [fix](build) write the hms-hive-shade artifact via explicit
outputFile
The shade plugin runs in an early phase and reads project.getArtifact().getFile(),
which is only populated at package time, so a clean build fails with 'main artifact
does not exist'. Point shade at an explicit outputFile instead.
---
fe/fe-connector/fe-connector-hms-hive-shade/pom.xml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/fe/fe-connector/fe-connector-hms-hive-shade/pom.xml b/fe/fe-connector/fe-connector-hms-hive-shade/pom.xml
index 215bad3c367963..baef06c0ac00e6 100644
--- a/fe/fe-connector/fe-connector-hms-hive-shade/pom.xml
+++ b/fe/fe-connector/fe-connector-hms-hive-shade/pom.xml
@@ -314,6 +314,15 @@ under the License.
process-classes
+
+ ${project.build.directory}/${project.artifactId}-${project.version}.jar