Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6414

Add more Apache license header patterns to skip downloading Apache license

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.1, 3.3.9, 3.5.4
    • 3.6.0
    • None
    • None

    Description

      While preparing Maven distribution, maven-remote-resources-plugin uses appended-resources/META-INF/LICENSE.vm to add content to LICENSE and try to download licenses for all dependencies that are not Apache licensed (see end of LICENSE and resulting lib/*.license in Maven binary distribution, since Maven 3.2.1 MNG-5494).

      License file is not downloaded only when project/license/name is strictly equal to "The Apache Software License, Version 2.0": this is too restrictive, as we see Apache license downloaded many times from https://www.apache.org/ (causing some issues with https: MNG-6358). 

      After debugging these cases, additional patterns for Apache license exist and need to be added to exception list in appended-resources/META-INF/LICENSE.vm:

      • "Apache License, Version 2.0"
      • "The Apache Software License, Version 2.0"
      • "ASLv2"
      • "Apache Public License 2.0"

       

      Attachments

        Issue Links

          Activity

            People

              slachiewicz Sylwester Lachiewicz
              slachiewicz Sylwester Lachiewicz
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: