3

如何打包魔改后的基于 maven 构建的开源项目

 2 years ago
source link: https://www.v2ex.com/t/838117
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  Java

如何打包魔改后的基于 maven 构建的开源项目

  mawerss1 · 11 小时 38 分钟前 · 466 次点击

代码规模比较大的 java 开源项目,魔改后怎么发布代码呢? 直接修改 groupId ,artifactId 吗?大的工程往往有很多 maven module ,有些模块构建比较复杂,如何方便的分发魔改后的代码?

2 条回复    2022-03-05 11:35:20 +08:00

zhouxiajie86

zhouxiajie86      11 小时 1 分钟前

发布到私仓吧

guyeu

guyeu      9 小时 30 分钟前

有两种,一种是你改动不大没有兼容性问题的话,修改 groupId 、artifactId 然后发布就行,一般也没别人用,标记清楚你的改动别人能区分就好;另一种是你的改动比较大,那就要在第一种的基础上增加包名的前缀,避免同时引用造成兼容性问题,一般是混合其他东西打包发布。

不管是哪种,都要注意开源协议是不是允许你二次分发。。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK