File tree Expand file tree Collapse file tree
flink-cdc-pipeline-connectors
flink-cdc-pipeline-connector-mysql
flink-cdc-pipeline-connector-paimon
flink-cdc-source-connectors/flink-connector-mysql-cdc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ limitations under the License.
3838 <version >${project.version} </version >
3939 </dependency >
4040
41+ <!-- MySQL JDBC: provided for compile; put mysql-connector-j in flink/lib -->
42+ <dependency >
43+ <groupId >com.mysql</groupId >
44+ <artifactId >mysql-connector-j</artifactId >
45+ <version >8.0.33</version >
46+ <scope >provided</scope >
47+ </dependency >
48+
4149 <dependency >
4250 <groupId >org.apache.flink</groupId >
4351 <artifactId >flink-connector-mysql-cdc</artifactId >
Original file line number Diff line number Diff line change @@ -36,11 +36,12 @@ limitations under the License.
3636 </properties >
3737
3838 <dependencies >
39- <!-- paimon dependency -->
39+ <!-- Paimon: provided so connector jar stays thin; put paimon-flink, paimon-s3, etc. in flink/lib -->
4040 <dependency >
4141 <groupId >org.apache.paimon</groupId >
4242 <artifactId >paimon-flink-${flink.major.version}</artifactId >
4343 <version >${paimon.version} </version >
44+ <scope >provided</scope >
4445 </dependency >
4546
4647 <!-- test -->
@@ -257,34 +258,7 @@ limitations under the License.
257258
258259 <build >
259260 <plugins >
260- <plugin >
261- <groupId >org.apache.maven.plugins</groupId >
262- <artifactId >maven-shade-plugin</artifactId >
263- <version >${maven.shade.plugin.version} </version >
264- <executions >
265- <execution >
266- <id >shade-flink</id >
267- <phase >package</phase >
268- <goals >
269- <goal >shade</goal >
270- </goals >
271- <configuration >
272- <shadeTestJar >false</shadeTestJar >
273- <artifactSet >
274- <includes >
275- <include >org.apache.paimon:*</include >
276- </includes >
277- </artifactSet >
278- <relocations >
279- <relocation >
280- <pattern >org.apache.kafka</pattern >
281- <shadedPattern >shaded.paimon.org.apache.kafka</shadedPattern >
282- </relocation >
283- </relocations >
284- </configuration >
285- </execution >
286- </executions >
287- </plugin >
261+ <!-- No shade: Paimon is provided; put paimon-flink, paimon-s3, etc. in flink/lib -->
288262
289263 <plugin >
290264 <groupId >org.apache.maven.plugins</groupId >
Original file line number Diff line number Diff line change @@ -48,6 +48,24 @@ limitations under the License.
4848 <groupId >io.debezium</groupId >
4949 <artifactId >debezium-connector-mysql</artifactId >
5050 <version >${debezium.version} </version >
51+ <exclusions >
52+ <exclusion >
53+ <groupId >com.mysql</groupId >
54+ <artifactId >mysql-connector-j</artifactId >
55+ </exclusion >
56+ <exclusion >
57+ <groupId >mysql</groupId >
58+ <artifactId >mysql-connector-java</artifactId >
59+ </exclusion >
60+ </exclusions >
61+ </dependency >
62+
63+ <!-- MySQL JDBC: provided; put mysql-connector-j in flink/lib -->
64+ <dependency >
65+ <groupId >com.mysql</groupId >
66+ <artifactId >mysql-connector-j</artifactId >
67+ <version >8.0.33</version >
68+ <scope >provided</scope >
5169 </dependency >
5270
5371 <dependency >
You can’t perform that action at this time.
0 commit comments