[O] Dolphinscheduler 版本适配改造(二)
# 背景说明
在 Dolphinscheduler 生态的全链路适配中,tools 子模块常被忽略,但实际生产场景下也需要 MySQL 相关依赖 ,否则相关脚本和自动化工具链会因缺包导致运行异常。MySQL适配补全
提示
务必确保 tools/pom.xml 同样补全 mysql-connector-java 与 testcontainers 的 scope,否则涉及数据库操作的工具类无法正常使用。
# 完整的 diff 文件
提示
以下 patch 补全 tools 模块所有必需依赖,scope 明确设为 compile,确保生产和测试环境均能正常使用。
Subject: [PATCH] optimized: 增加mysql 驱动
---
Index: dolphinscheduler-tools/pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/dolphinscheduler-tools/pom.xml b/dolphinscheduler-tools/pom.xml
--- a/dolphinscheduler-tools/pom.xml (revision 2ec95b5c2c50d2882d40e07fb13cf38b5f0469b4)
+++ b/dolphinscheduler-tools/pom.xml (date 1728877566153)
@@ -129,16 +129,19 @@
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>mysql</artifactId>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
+ <scope>compile</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
+ <scope>compile</scope>
</dependency>
</dependencies>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
- 01
- bigtop-select 打包缺 compat 报错修复 deb07-16
- 02
- bigtop-select 打包缺 control 文件报错修复 deb07-16
- 03
- 首次编译-环境初始化 必装07-16