Skip to content

Commit dd698c9

Browse files
authored
[Improve][Connector-V2][Jdbc] Shade hikari in jdbc connector (#6116)
* [Improve] Shade hikari in jdbc connector * update
1 parent 1312a1d commit dd698c9

File tree

1 file changed

+40
-0
lines changed
  • seatunnel-connectors-v2/connector-jdbc

1 file changed

+40
-0
lines changed

seatunnel-connectors-v2/connector-jdbc/pom.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,4 +291,44 @@
291291
<artifactId>oceanbase-client</artifactId>
292292
</dependency>
293293
</dependencies>
294+
295+
<build>
296+
<plugins>
297+
<plugin>
298+
<groupId>org.apache.maven.plugins</groupId>
299+
<artifactId>maven-shade-plugin</artifactId>
300+
<executions>
301+
<execution>
302+
<goals>
303+
<goal>shade</goal>
304+
</goals>
305+
<phase>package</phase>
306+
<configuration>
307+
<createSourcesJar>false</createSourcesJar>
308+
<shadeSourcesContent>true</shadeSourcesContent>
309+
<shadedArtifactAttached>false</shadedArtifactAttached>
310+
<createDependencyReducedPom>false</createDependencyReducedPom>
311+
<filters>
312+
<filter>
313+
<artifact>*:*</artifact>
314+
<excludes>
315+
<exclude>META-INF/*.SF</exclude>
316+
<exclude>META-INF/*.DSA</exclude>
317+
<exclude>META-INF/*.RSA</exclude>
318+
</excludes>
319+
</filter>
320+
</filters>
321+
<relocations>
322+
<!-- rename hikari to avoid jar conflict from spark -->
323+
<relocation>
324+
<pattern>com.zaxxer.hikari</pattern>
325+
<shadedPattern>${seatunnel.shade.package}.com.zaxxer.hikari</shadedPattern>
326+
</relocation>
327+
</relocations>
328+
</configuration>
329+
</execution>
330+
</executions>
331+
</plugin>
332+
</plugins>
333+
</build>
294334
</project>

0 commit comments

Comments
 (0)