Issue Type: Bug Bug
Affects Versions: 1.5
Assignee: Tony Chemit
Attachments: fix_missing_file_not_written.patch
Created: 17/Sep/13 3:10 AM
Description:

When you enable a license whitelist, and enable the failOnWarning property, there is a bug in the "missing file" generation. The problem is, if a missing file does not exist, or contains an incomplete set of license mappings, those licenses are then mapped to "Unknown License". If you don't have "Unknown License" in your license whitelist, then an exception is fired before the code has a chance to generate a new missing file.

I've attached a patch which very simply moves the exception for unsafe licenses to below the exception for unsafe mappings. This means that you will always fail on an incomplete missing file, irrespective of whether you have a whitelist enabled. If the missing file is complete, it is then possible to fail on unsafe licenses, as this exception now happens immediately afterwards.

The patch is against the tagged 1.5 branch of the code. I've run "mvn install", and all the integration tests complete successfully.

Project: Mojo's License Maven Plugin
Priority: Minor Minor
Reporter: Charlie Halford
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to