[B] Trino 版本适配改造(三)
# 第三步:添加 patch 补丁文件,解决 analyze 检查问题
在 Trino 474 版本的 Bigtop RPM 打包流程中,analyze-only 校验是一个常见的编译卡点。 此处需要为 Maven 构建增加 patch 补丁,从而实现对 analyze 相关插件的全局跳过,保证持续集成流程流畅。
提示
补丁实际存放路径如下:
bigtop-packages/src/common/trino/patch1-ANALYSE-ONLY-SKIP.diff
# Patch 内容解读
此次补丁主要作用于 pom.xml核心改造,直接通过 maven-dependency-plugin 配置 <skip>true</skip>
,让 analyze-only 步骤被安全跳过。
Subject: [PATCH] [fixed] 去掉 analyze
---
Index: pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/pom.xml b/pom.xml
--- a/pom.xml (revision 47b25b47700dc5bae231351850bc7861554e8b3b)
+++ b/pom.xml (date 1745163679535)
@@ -2816,6 +2816,15 @@
</excludes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>3.8.1</version>
+ <configuration>
+ <!-- 整体跳过 analyze-only 检查 -->
+ <skip>true</skip>
+ </configuration>
+ </plugin>
</plugins>
</build>
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
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
注意
如果没有添加该 patch 补丁,在离线或内网环境下极易因依赖检查失败导致编译终止,建议务必确认 patch 已生效。
# 操作注意事项
- 补丁命名建议有描述性,如
patch1-ANALYSE-ONLY-SKIP.diff
,便于团队协作与后续维护。 - 离线环境更要重视 analyze-only 的兼容性依赖与网络问题,否则每次都可能卡在 dependency 校验。
- 01
- bigtop-select 打包缺 compat 报错修复 deb07-16
- 02
- bigtop-select 打包缺 control 文件报错修复 deb07-16
- 03
- 首次编译-环境初始化 必装07-16