Hisoka-X commented on code in PR #3218:
URL:
https://github.com/apache/incubator-seatunnel/pull/3218#discussion_r1008984564
##########
seatunnel-connectors-v2/README.zh.md:
##########
@@ -18,7 +27,25 @@ SeaTunnel为与计算引擎进行解耦,设计了新的连接器API,通过
version.(或者当你想在spark引擎运行时在`seatunnel-examples/seatunnel-spark-connector-v2-example/pom.xml`添加依赖)
2.
如果你的connector中存在scope为test或provided的依赖,将这些依赖添加到seatunnel-examples/seatunnel-flink-connector-v2-example/pom.xml(
或者在seatunnel-examples/seatunnel-spark-connector-v2-example/pom.xml)中,并且修改scope为compile.
-3. 参考`SeaTunnelApiExample`开发自己的案例程序。
+3. 在resources/examples下添加任务配置文件.
+4. 在`SeaTunnelApiExample` main方法中配置文件.
+5. 运行main方法即可.
+
+### 创建新的seatunnel v2 connector
+
+1.在`seatunnel-connectors-v2`目录下新建一个module,命名为connector-{连接器名}.
+
+2.pom文件可以参考已有连接器的pom文件,并在父model的pom文件中添加当前子model.
+
+3.新建两个package分别对应source和sink
+
+ package org.apache.seatunnel.connectors.seatunnel.{连接器名}.source
+
+ package org.apache.seatunnel.connectors.seatunnel.{连接器名}.sink
+
+4.将连接器添加到plugin-mapping文件.
Review Comment:
```suggestion
4.将连接器信息添加到在项目根目录的plugin-mapping.properties文件中.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]