TT Bigdata TT Bigdata
首页
GitHub (opens new window)
JaneTTR

JaneTTR

数据酿造智慧,每一滴都是沉淀!
  • 开发环境

  • Ambari 编译

  • Bigtop 编译

  • Ambari 源码编译

  • 前端开发

  • 后端开发

  • 官方组件编译

  • 扩展组件编译

    • Sqoop编译

    • Ranger编译

    • Phoenix编译

    • Dolphinscheduler编译

    • Doris编译

    • Cloudbeaver编译

    • Atlas编译

    • Superset编译

    • Celeborn编译

    • Ozone编译

    • Impala编译

    • Trino编译

      • version-474

        • Trino_474 编译
        • [O] Trino 版本适配改造(一)
        • [O] Trino 版本适配改造(二)
        • [B] Trino 版本适配改造(一)
        • [B] Trino 版本适配改造(二)
          • 第二步:添加 patch 补丁文件
            • 补丁完整内容如下
        • [B] Trino 版本适配改造(三)
    • Paimon编译

    • Hudi编译

  • 源码编译
  • 扩展组件编译
  • Trino编译
  • version-474
JaneTTR
2025-05-06
目录
第二步:添加 patch 补丁文件
补丁完整内容如下

[B] Trino 版本适配改造(二)

# 第二步:添加 patch 补丁文件

在这一步,我们需要针对 Trino 前端构建流程和 Maven 插件适配,新增一个定制化补丁,用于优化 Node 检查逻辑,并解决部分 POM 插件在企业环境下的兼容性问题。

补丁文件需放置于:

bigtop-packages/src/common/trino/patch0-POMS-OPTIMIZED.diff
1

Trino POM Patch

说明

补丁作用主要是去掉 node 检查,避免企业环境 node 版本校验导致的编译失败,并引入插件 profile 控制,提升整体可移植性和适配性。

# 补丁完整内容如下

Subject: [PATCH] [fixed] 去掉node check
---
Index: core/trino-web-ui/pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/core/trino-web-ui/pom.xml b/core/trino-web-ui/pom.xml
--- a/core/trino-web-ui/pom.xml	(revision 0cba1d64a2e993a6f5e75420b23e424f1d887908)
+++ b/core/trino-web-ui/pom.xml	(revision 47b25b47700dc5bae231351850bc7861554e8b3b)
@@ -103,28 +103,28 @@
                             <workingDirectory>src/main/resources/webapp/src</workingDirectory>
                         </configuration>
                     </execution>
-                    <execution>
-                        <id>check (webapp)</id>
-                        <goals>
-                            <goal>npm</goal>
-                        </goals>
-                        <phase>verify</phase>
-                        <configuration>
-                            <arguments>run ${frontend.check.goal}</arguments>
-                            <workingDirectory>src/main/resources/webapp/src</workingDirectory>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>check (webapp-preview)</id>
-                        <goals>
-                            <goal>npm</goal>
-                        </goals>
-                        <phase>verify</phase>
-                        <configuration>
-                            <arguments>run ${frontend.check.goal}</arguments>
-                            <workingDirectory>src/main/resources/webapp-preview</workingDirectory>
-                        </configuration>
-                    </execution>
+<!--                    <execution>-->
+<!--                        <id>check (webapp)</id>-->
+<!--                        <goals>-->
+<!--                            <goal>npm</goal>-->
+<!--                        </goals>-->
+<!--                        <phase>verify</phase>-->
+<!--                        <configuration>-->
+<!--                            <arguments>run ${frontend.check.goal}</arguments>-->
+<!--                            <workingDirectory>src/main/resources/webapp/src</workingDirectory>-->
+<!--                        </configuration>-->
+<!--                    </execution>-->
+<!--                    <execution>-->
+<!--                        <id>check (webapp-preview)</id>-->
+<!--                        <goals>-->
+<!--                            <goal>npm</goal>-->
+<!--                        </goals>-->
+<!--                        <phase>verify</phase>-->
+<!--                        <configuration>-->
+<!--                            <arguments>run ${frontend.check.goal}</arguments>-->
+<!--                            <workingDirectory>src/main/resources/webapp-preview</workingDirectory>-->
+<!--                        </configuration>-->
+<!--                    </execution>-->
                     <execution>
                         <id>package (webapp-preview)</id>
                         <goals>
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 0cba1d64a2e993a6f5e75420b23e424f1d887908)
+++ b/pom.xml	(revision 47b25b47700dc5bae231351850bc7861554e8b3b)
@@ -3008,5 +3008,36 @@
                 </plugins>
             </build>
         </profile>
+        <profile>
+            <id>disable-git-plugin</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>io.github.git-commit-id</groupId>
+                        <artifactId>git-commit-id-maven-plugin</artifactId>
+                        <configuration>
+                            <skip>true</skip>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
+            <id>disable-sortpom</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>com.github.ekryd.sortpom</groupId>
+                        <artifactId>sortpom-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>default</id>
+                                <phase>none</phase> <!-- 禁用插件的执行 -->
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
 </project>

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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#Trino#Bigtop#源码编译#版本适配
[B] Trino 版本适配改造(一)
[B] Trino 版本适配改造(三)

← [B] Trino 版本适配改造(一) [B] Trino 版本适配改造(三)→

最近更新
01
当前版本 2026/08
08-29
02
把 Ambari Server HA 稳稳地跑起来
08-17
03
从一次启用操作追到主备就绪
08-17
更多文章>
Theme by Vdoing | Copyright © 2017-2026 JaneTTR | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式