Skip to content

Commit e4465c5

Browse files
王召potoo0
authored andcommitted
[fix]: relocation com.fasterxml
1 parent e80ee65 commit e4465c5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

flink-sql-connector-clickhouse/pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,28 @@ limitations under the License.
4242
</dependencies>
4343
<build>
4444
<plugins>
45+
<plugin>
46+
<groupId>org.apache.maven.plugins</groupId>
47+
<artifactId>maven-source-plugin</artifactId>
48+
<executions>
49+
<execution>
50+
<id>attach-test-sources</id>
51+
<goals>
52+
<goal>jar</goal>
53+
</goals>
54+
<configuration>
55+
<archive>
56+
<!-- Globally exclude maven metadata, because it may accidentally bundle files we don't intend to -->
57+
<addMavenDescriptor>false</addMavenDescriptor>
58+
</archive>
59+
<includes>
60+
<include>META-INF/LICENSE</include>
61+
<include>META-INF/NOTICE</include>
62+
</includes>
63+
</configuration>
64+
</execution>
65+
</executions>
66+
</plugin>
4567
<plugin>
4668
<groupId>org.apache.maven.plugins</groupId>
4769
<artifactId>maven-shade-plugin</artifactId>
@@ -62,6 +84,10 @@ limitations under the License.
6284
</excludes>
6385
</artifactSet>
6486
<relocations>
87+
<relocation>
88+
<pattern>com.fasterxml</pattern>
89+
<shadedPattern>${shade.base}.com.fasterxml</shadedPattern>
90+
</relocation>
6591
<relocation>
6692
<pattern>com.clickhouse</pattern>
6793
<shadedPattern>${shade.base}.com.clickhouse</shadedPattern>

0 commit comments

Comments
 (0)