You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/11/03 07:42:20 UTC

[GitHub] [rocketmq-externals] ClementIV opened a new issue #454: feat:Common dependency package

ClementIV opened a new issue #454: feat:Common dependency package
URL: https://github.com/apache/rocketmq-externals/issues/454
 
 
   # Common dependency package
   
   目前多个connector依赖共同的包不好管理,对共同的包如何管理?
   
   ## 1. 父子继承
   
   下面是一个简略的项目结构图
   
   ```
   Parent(rocketmq-external)
   `------ childA(rocketmq-connect)
             `--- pom.xml
   
   `------ childB(rocketmq-replicatore)
            `--- pom.xml
   `------ others(...)
   `------ pom.xml
   ```
   在external中添加maven 结构,再组织。
   
   ## 2. 同级的引用
   
   ```
   Parent(rocketmq-external)
   `------ childA(rocketmq-connect)
             `--- pom.xml
   
   `------ childB(rocketmq-replicatore)
            `--- pom.xml
   `------ rocketmq-common
   `------ others(...)
   ```
   
   添加一个同级的common模块,其他项目依赖该模块
   
   以上两种哪种更优?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services