Skip to content

Commit 5e3eddb

Browse files
zhangwl9张文领
andauthored
[HotFix] Shade third party classes for spark-3.4 runtime (#4032)
Shade third party classes for spark runtime 3.4 Co-authored-by: 张文领 <zhangwl9@chinatelecom.cn>
1 parent 9fcf4cc commit 5e3eddb

File tree

1 file changed

+34
-0
lines changed
  • amoro-format-mixed/amoro-mixed-spark/v3.4/amoro-mixed-spark-runtime-3.4

1 file changed

+34
-0
lines changed

amoro-format-mixed/amoro-mixed-spark/v3.4/amoro-mixed-spark-runtime-3.4/pom.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,23 @@
120120
<exclude>META-INF/services/org.apache.spark.sql.sources.DataSourceRegister</exclude>
121121
</excludes>
122122
</filter>
123+
<filter>
124+
<artifact>*:*</artifact>
125+
<excludes>
126+
<exclude>META-INF/*.SF</exclude>
127+
<exclude>META-INF/*.DSA</exclude>
128+
<exclude>META-INF/*.RSA</exclude>
129+
<exclude>**/log4j.properties</exclude>
130+
<exclude>META-INF/DEPENDENCIES</exclude>
131+
<exclude>META-INF/*LICENSE*</exclude>
132+
<exclude>META-INF/MANIFEST.MF</exclude>
133+
<exclude>META-INF/*NOTICE*</exclude>
134+
<exclude>META-INF/**/module-info.class</exclude>
135+
<exclude>LICENSE.txt</exclude>
136+
<exclude>NOTICE.txt</exclude>
137+
<exclude>mozilla/*.txt</exclude>
138+
</excludes>
139+
</filter>
123140
</filters>
124141
<relocations>
125142
<!-- relocation amoro spark packages -->
@@ -133,6 +150,11 @@
133150
<pattern>org.apache.orc</pattern>
134151
<shadedPattern>org.apache.amoro.shade.org.apache.orc</shadedPattern>
135152
</relocation>
153+
<!-- classes in orc-core -->
154+
<relocation>
155+
<pattern>org.threeten</pattern>
156+
<shadedPattern>org.apache.amoro.shade.org.threeten</shadedPattern>
157+
</relocation>
136158
<relocation>
137159
<pattern>org.apache.avro</pattern>
138160
<shadedPattern>org.apache.amoro.shade.org.apache.avro</shadedPattern>
@@ -185,6 +207,18 @@
185207
<pattern>org.apache.commons.lang3</pattern>
186208
<shadedPattern>org.apache.amoro.shade.org.apache.commons.lang3</shadedPattern>
187209
</relocation>
210+
<relocation>
211+
<pattern>org.apache.commons.io</pattern>
212+
<shadedPattern>org.apache.amoro.shade.org.apache.commons.io</shadedPattern>
213+
</relocation>
214+
<relocation>
215+
<pattern>org.apache.thrift</pattern>
216+
<shadedPattern>org.apache.amoro.shade.org.apache.thrift</shadedPattern>
217+
</relocation>
218+
<relocation>
219+
<pattern>com.github.benmanes</pattern>
220+
<shadedPattern>org.apache.amoro.shade.com.github.benmanes</shadedPattern>
221+
</relocation>
188222

189223
<!-- relocation iceberg -->
190224
<relocation>

0 commit comments

Comments
 (0)