[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
- [/metrics/aggregated] — 聚合数据范围 检查点09-19
- 02
- [/metrics] — 反向分析接口参数 请求抓包09-17
- 03
- [/metrics] — 普通指标写入方法 POST09-17