Skip to content

Recipe: Handle a License Conflict

The analysis flags a license violation in one of your modules. Here is how to find the cause and resolve it.

Note

You'll need: a module with an analysis that shows a legal violation, and the role Manager or Compliance manager (for project-wide lists, Compliance manager). The demo project usually contains license findings you can practise on.

Steps

1. Find the component

Open the module and select the Legal tab. It lists the licenses found in the module, each with the components that carry it and the obligations and violations the evaluation produced. Use Filter to narrow the list. Select a component to see its versions, declared and detected licenses.

The Legal view of webshop-backend with the license GPL-2.0-only expanded, status Violations, showing its component mysql-connector-java 8.0.27; Apache-2.0 also has Violations, LGPL-2.1-only is Allowed in module, and MIT and License not detected have Warnings.

2. Check the detection

False positives happen. Check on the component detail:

  • Is the license the one the component's maintainers declare? Multi-licensed components may offer a license that fits.
  • Was a license detected at all? Components without a recognised license need a decision by hand.

If the license is wrong or unknown, set the correct one by hand with a justification. See Manual license resolution.

Whether a license is a violation depends on the project's and module's legal settings: commercial use, operating model, distribution, trade secrets. If they are not filled in or do not describe your case, the result is not reliable. Correct them with the wizard. See Fill in the Legal Questionnaire.

4. Decide

Decision How
Replace the component Change your code or dependency, then scan or import again.
Allow the license for this module or project Settings → Allow/Deny → Always allow license. On a module, entries added by a developer wait for a compliance manager's approval.
Resolve the obligation Record how you meet the obligation on the Resolved obligations settings tab.

The Licenses part of the Allow/Deny tab of a module: the Always allow license list with GNU Lesser General Public License v2.1 only and its comment, and the Always deny license list with GNU Affero General Public License v3.0 only.

Company-wide allow and deny lists are kept under Administration → Settings → License allow/deny and Administration → Settings → Component allow/deny. See Settings.

5. Re-analyse

Select the analyse button in the module header. The violation should be gone, or show the decision you recorded. Every change of a list or license is logged with user, time and comment.