license-maven-plugin icon indicating copy to clipboard operation
license-maven-plugin copied to clipboard

aggregate-download-licenses: downloaded license texts from WWW or locally fetched ones are missing their file extensions

Open duracotton opened this issue 2 years ago • 0 comments

I have set the "licensesConfigFile"'s URL element to use some WWW Urls as well as some local files (using the file:// descriptor - see #428)

Result of a mvn clean package in the "licensesOutputDirectory ":

  • For the local license texts defined with the file:// descriptor: the original extensions (.html and .txt) of all files are removed https://github.com/mojohaus/license-maven-plugin/blob/3f66788dd1ac8c87edcef5626c25d678a792e8dd/src/main/java/org/codehaus/mojo/license/download/LicenseDownloader.java#L187 No extension is set explicitly or taken from the input file.

  • For the downloaded license texts: some files have an extension but most of them are missing them.

Result screenshot: image

duracotton avatar May 24 '22 15:05 duracotton