mojohaus/license-maven-plugin

Override the identified during license-check

Open

#77 创建于 2017年3月2日

在 GitHub 查看
 (4 评论) (1 反应) (0 负责人)Java (127 fork)auto 404
enhancementhelp wanted

仓库指标

Star
 (115 star)
PR 合并指标
 (PR 指标待抓取)

描述

As discussed in #59 it is sometimes necessary to override the license for a certain dependency. The fix created for #59 however does this only for the license-report. This overwrite should also be applied during license checks.

Example:

I get the following error (with <failIfWarning> is true):

[WARNING] There are 1 forbidden licenses used:
[WARNING] License CDDL + GPLv2 with classpath exception used by 1 dependencies:
 -javax.transaction API (javax.transaction:javax.transaction-api:1.2 - http://jta-spec.java.net)

Now I have created the file my-proj/src/license/override-THIRD-PARTY.properties with the following content:

# original: CDDL + GPLv2 with classpath exception
javax.transaction--javax.transaction-api--1.2=BSD-3-Clause

... with my project pom has an whitelist entry for BSD-3-Clause:

<configuration>
 <includedLicenses>
   <includedLicense>BSD-3-Clause</includedLicense>

However, the build still fails with the same error as shown above. I'd expect it not to fail.

贡献者指南