You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by be...@apache.org on 2026/08/13 00:35:20 UTC
(streampark) branch dev updated: [Console] Fix streampark-flink-sqlclient artifactId mismatch in assembly packaging and jar lookup (#4485)
This is an automated email from the ASF dual-hosted git repository.
wolfboys pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampark.git
The following commit(s) were added to refs/heads/dev by this push:
new 4a0aa0eeb [Console] Fix streampark-flink-sqlclient artifactId mismatch in assembly packaging and jar lookup (#4485)
4a0aa0eeb is described below
commit 4a0aa0eeb0da93ee7a0d7323fb6b1ffe177d93af
Author: 88fantasy <88...@gmail.com>
AuthorDate: Thu Aug 13 08:35:15 2026 +0800
[Console] Fix streampark-flink-sqlclient artifactId mismatch in assembly packaging and jar lookup (#4485)
* fix(assembly): match streampark-flink-sqlclient's post-migration artifactId in dist packaging
streampark-flink-sqlclient dropped its Scala cross-build artifactId suffix
when the module was migrated from Scala to Java, but
streampark-console-service/src/main/assembly/assembly.xml still referenced
the old streampark-flink-sqlclient_${scala.binary.version} coordinate in
both the lib/ exclude list and the client/ include list. Maven's
dependencySet include/exclude match on exact artifactId, so the stale
pattern silently matched nothing: the jar fell through to lib/ (wrong -- it
belongs in client/, the per-Flink-version submission jar directory) and was
never copied to client/, where FlinkPipelineController#buildApplication
expects to find it before it will build/release a Flink SQL application.
streampark-spark-sqlclient is untouched -- it is still Scala cross-built and
keeps the _${scala.binary.version} suffix.
Reproduced via POST /flink/pipe/build, which failed with "can't found
streampark-flink-sqlclient jar in .../client" against the previous build.
* fix(console): match streampark-flink-sqlclient's post-migration artifactId in ServiceHelper lookup
Same root cause as the assembly.xml fix in this branch: streampark-flink-sqlclient
dropped its Scala cross-build artifactId suffix in #4462, but
ServiceHelper.getFlinkSqlClientJar() still built its filename-matching regex as
streampark-flink-sqlclient_<scalaVersion>-*.jar. With the assembly fix alone,
the jar lands correctly in client/ but this regex still never matches it, so
POST /flink/pipe/build keeps failing with "can't found streampark-flink-sqlclient
jar in .../client" -- both fixes are required together to unblock building a
Flink SQL application end to end.
getSparkSqlClientJar() is untouched -- streampark-spark-sqlclient is still Scala
cross-built and keeps its _${scalaVersion} suffix.
---------
Co-authored-by: 阮伟儿 <ru...@dgmed.cn>
---
.../streampark-console-service/src/main/assembly/assembly.xml | 4 ++--
.../java/org/apache/streampark/console/core/util/ServiceHelper.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/streampark-console/streampark-console-service/src/main/assembly/assembly.xml b/streampark-console/streampark-console-service/src/main/assembly/assembly.xml
index 86a4c7cba..c9511184b 100644
--- a/streampark-console/streampark-console-service/src/main/assembly/assembly.xml
+++ b/streampark-console/streampark-console-service/src/main/assembly/assembly.xml
@@ -30,7 +30,7 @@
<useProjectArtifact>true</useProjectArtifact>
<outputDirectory>lib</outputDirectory>
<excludes>
- <exclude>org.apache.streampark:streampark-flink-sqlclient_${scala.binary.version}</exclude>
+ <exclude>org.apache.streampark:streampark-flink-sqlclient</exclude>
<exclude>org.apache.streampark:streampark-spark-sqlclient_${scala.binary.version}</exclude>
<exclude>javax.servlet:servlet-api</exclude>
</excludes>
@@ -38,7 +38,7 @@
<dependencySet>
<outputDirectory>client</outputDirectory>
<includes>
- <include>org.apache.streampark:streampark-flink-sqlclient_${scala.binary.version}</include>
+ <include>org.apache.streampark:streampark-flink-sqlclient</include>
<include>org.apache.streampark:streampark-spark-sqlclient_${scala.binary.version}</include>
</includes>
</dependencySet>
diff --git a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/util/ServiceHelper.java b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/util/ServiceHelper.java
index 252b7364e..400aaceaa 100644
--- a/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/util/ServiceHelper.java
+++ b/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/util/ServiceHelper.java
@@ -64,7 +64,7 @@ public class ServiceHelper {
ApiAlertException.throwIfFalse(
localClient.exists(), "[StreamPark] " + localClient + " no exists. please check.");
- String regex = String.format("streampark-flink-sqlclient_%s-.*\\.jar", flinkEnv.getScalaVersion());
+ String regex = "streampark-flink-sqlclient-.*\\.jar";
List<String> jars = Arrays.stream(Objects.requireNonNull(localClient.list()))
.filter(x -> x.matches(regex))