Skip to content

Commit

Permalink
[Feature][Connector-V2] Support opengauss-cdc (apache#7433)
Browse files Browse the repository at this point in the history
  • Loading branch information
dailai authored and hawk9821 committed Aug 29, 2024
1 parent b88287d commit b69bc0d
Show file tree
Hide file tree
Showing 20 changed files with 3,678 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/plugin_config
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,5 @@ connector-web3j
connector-milvus
connector-activemq
connector-sls
--end--
connector-cdc-opengauss
--end--
170 changes: 170 additions & 0 deletions docs/en/connector-v2/source/Opengauss-CDC.md

Large diffs are not rendered by default.

169 changes: 169 additions & 0 deletions docs/zh/connector-v2/source/Opengauss-CDC.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions plugin-mapping.properties
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ seatunnel.source.Milvus = connector-milvus
seatunnel.sink.Milvus = connector-milvus
seatunnel.sink.ActiveMQ = connector-activemq
seatunnel.source.Sls = connector-sls
seatunnel.source.Opengauss-CDC = connector-cdc-opengauss

seatunnel.transform.Sql = seatunnel-transforms-v2
seatunnel.transform.FieldMapper = seatunnel-transforms-v2
Expand All @@ -142,3 +143,4 @@ seatunnel.transform.Split = seatunnel-transforms-v2
seatunnel.transform.Copy = seatunnel-transforms-v2
seatunnel.transform.DynamicCompile = seatunnel-transforms-v2
seatunnel.transform.LLM = seatunnel-transforms-v2

Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-cdc</artifactId>
<version>${revision}</version>
</parent>

<artifactId>connector-cdc-opengauss</artifactId>
<name>SeaTunnel : Connectors V2 : CDC : Opengauss</name>

<properties>
<opengauss.version>5.1.0</opengauss.version>
</properties>

<dependencies>
<dependency>
<groupId>org.opengauss</groupId>
<artifactId>opengauss-jdbc</artifactId>
<version>${opengauss.version}</version>
</dependency>

<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-cdc-postgres</artifactId>
<version>${project.version}</version>
</dependency>

</dependencies>

<build>
<plugins>
<!-- Shade the driver of Opengauss to prevent the conflict of the Postgres's Driver -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>shade</goal>
</goals>
<phase>package</phase>
<configuration>
<createSourcesJar>false</createSourcesJar>
<shadeSourcesContent>true</shadeSourcesContent>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>false</createDependencyReducedPom>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>org.postgresql</pattern>
<shadedPattern>${seatunnel.shade.package}.org.postgresql</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Loading

0 comments on commit b69bc0d

Please sign in to comment.