分叉 LGPL 项目时使用 Java 包

发布于 2024-12-21 07:06:08 字数 1455 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

戒ㄋ 2024-12-28 07:06:08

包的命名约定表示它应该基于您的公司域名,因此无论其他问题如何,您都应该更改它。如果不这样做,当您的版本和原始版本都位于类路径上时,您就会遇到问题。

如果您打算将您的分叉重新分发给其他人,您应该清楚它的来源并避免混淆。如果你保留这个名字,你确实暗示了认可,但如果库的用户在谷歌搜索和堆栈跟踪中无法区分它们,这也会让库的用户感到困惑。 (如果您只是创建一个带有微小更改的私人分叉,您可以考虑不要打扰......)

The naming convention for packages says it should be based on your companies domain name, so regardless of other issues you should probably change it anyway. If you don't you'll run into issues when both your version and the original version are on the classpath.

If you are planning to redistribute your fork to others you should be clear about where it's from and avoid confusion. You do imply endorsement if you keep the name, but it's also confusing for the users of the library if they can't tell them apart when googling and in stacktraces. (If you're just creating a private fork with minor changes you could consider not to bother...)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文