Uploaded image for project: 'Maven Checkstyle Plugin'
  1. Maven Checkstyle Plugin
  2. MCHECKSTYLE-219

When no license is specified, ALv2 from maven-checkstyle-plugin is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.11
    • 2.12
    • None
    • None

    Description

      In practice most projects start without specifying a license by default. When using the maven-checkstyle-plugin, it'll search on several locations for the license, ending with looking in the checkstyle-plugin itself. Now the project suddenly inherits the ALv2, which is just not correct.

      [main] [DEBUG] headerLocation LICENSE.txt
      
      [main] [DEBUG] The resource 'LICENSE.txt' was not found with resourceLoader org.codehaus.plexus.resource.loader.FileResourceLoader.
      
      [main] [DEBUG] URLResourceLoader: Exception when looking for 'LICENSE.txt' at ''
      
      java.net.MalformedURLException: no protocol: LICENSE.txt
      ...
      [main] [DEBUG] The resource 'LICENSE.txt' was not found with resourceLoader org.codehaus.plexus.resource.loader.URLResourceLoader.
      
      [main] [DEBUG] The resource 'LICENSE.txt' was not found with resourceLoader org.codehaus.plexus.resource.loader.JarResourceLoader.
      
      [main] [DEBUG] The resource 'LICENSE.txt' was found as jar:file:/E:/java-workspace/apache-maven-plugins/maven-checkstyle-plugin/target/local-repo/org/apache/maven/plugins/maven-checkstyle-plugin/2.12-SNAPSHOT/maven-checkstyle-plugin-2.12-SNAPSHOT.jar!/LICENSE.txt.
      

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              rfscholte Robert Scholte
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: