修改和使用第三方开源软件后重新发布开源License怎么写,看看Apache Maven就明白了

本文通过Apache Maven的例子详细解释了当修改或引用开源软件并重新发布时,如何正确处理LICENSE、NOTICE和README文件。LICENSE文件包含了项目自身的授权条款和第三方组件的授权信息,NOTICE文件用于声明版权和第三方组件的版权信息,README文件则提供项目简介和使用指导。遵循这些最佳实践,可以帮助确保在维护开源精神的同时保护自身和他人的权益。
摘要由CSDN通过智能技术生成

有人说,看了很多开源License的文章,我还是不知道如果修改了或者引用了他人发布的开源软件,然后重新发布自己的修改版本,该怎么做?如何加上自己的著作权同时又尊重原来的作者。其实就差一个例子,看看Apache Maven就明白了。

一、安装包中包含LICENSE、NOTICE、README三个文本文件

打开Apache Maven一目了然,里面包含三个文件“LICENSE、NOTICE、README”且都是文本文件,如下图所示:

很多程序员写项目都会忽略写文档,一个完整的项目建议包含这三个文件,既能提升档次,又能给用户帮助。这三个文件合成一个行不行呢?也可以,其实没有严格的规定,但是建议分开,这三个文件各有侧重,而且很多大型的开源项目都是必备这三个文件,建议向大佬看齐。下面依次打开这三个文件,看看全文、

二、LICENSE文件及内容

打开Apache Maven中的LICENSE文件可以看到主要分成两大部分:
第一部分:Apache LICENSE2.0的内容,也是Apache Maven自身的授权条款。

第二部分:Apache Maven中用到的第三方组件和它的License。如果没有用到第三方开源项目或者第三方开源项目与Maven授权一样,那么这一部分可以不写,但是版权中必须声明第三方项目所属的版权(可在NOTICE中统一声明)。同理,如果当前项目是一个衍生产品,即基于他人的作品修改后的发布,那么也是采用同样的处理方式。
Apache Maven的License全文内容如下:

                                Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contribut

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值