You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/11/16 02:28:28 UTC

[GitHub] [dubbo] tonycody opened a new issue, #10943: 关于 Dubbo 开源项目Maven工程标准化的一些建议

tonycody opened a new issue, #10943:
URL: https://github.com/apache/dubbo/issues/10943

   国内的开源项目对比国际比较顶级的项目,发现国内的在工程化方面不太讲究。
   
   拿 Spring 系项目来说,其在工程结构、模块依赖、包命名,甚至模块中的 name 以及 description 元素的命名都非常的讲究。这对于大型项目的风格、专业化以及对于技术领域的学习规范化引导是非常有意义的。
   
   比如,我们提供给使用方的成品依赖包,可能仍然会包含如:maven-compiler-plugin、maven-shade-plugin甚至包含了 profiles 相关的标签。这些是没意义的。因为在我们的工程中是必须的,但给使用方是完全非必要的。
   
   以上这点,在 Spring 系的项目中也比较突现,但 Spring 系项目通过一些手段做了一些处理。给外部包的依赖是完全按需内容给出的,完全不包含 Spring 项目在构建时必须的 profiles、plugins以及dependency等标签。
   
   杠精们通通常会说,给了有什么问题。拿 plugins 来举例,使用方不同的使用场景会引导 plugins 在工程内被传递合并。会导致使用方项目在引入了开源项目提供包后产生的一些问题。然而,通常我们提供给使用方引入的包,对使用方有意义的仅仅是dependencie依赖项,而不应该包含 profiles、plugins甚至我方工程结构相关的信息,比如:parent关系。
   
   这一点,通过分析 Spring Boot spring-boot-dependencies 模块即可得知。如下:
   ![image](https://user-images.githubusercontent.com/6773121/202068731-86d66a50-c9ce-4e9b-b644-05e79d0f6d51.png)
   


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] EarthChen commented on issue #10943: 关于 Dubbo 开源项目Maven工程标准化的一些建议

Posted by GitBox <gi...@apache.org>.
EarthChen commented on issue #10943:
URL: https://github.com/apache/dubbo/issues/10943#issuecomment-1316864192

   Would you like to help us optimize it?Welcome to your pr.


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] wxbty commented on issue #10943: 关于 Dubbo 开源项目Maven工程标准化的一些建议

Posted by GitBox <gi...@apache.org>.
wxbty commented on issue #10943:
URL: https://github.com/apache/dubbo/issues/10943#issuecomment-1319677450

   The issue language may also be part of internationalization


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org