mathieucarbou / license-maven-plugin

Manage license headers in your source files

Home Page:https://oss.carbou.me/license-maven-plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filter Support for undefined licenses in dependencies

VenaNocta opened this issue · comments

Currently if a dependency doesn't have an license defined it prints just an error-code and omitts that there are some unknown dependency-licenses.

[INFO] ------------------< net.runeduniverse.libs.rogm:core >------------------
[INFO] Building ROGM Core 2.1.1                                           [2/6]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- license-maven-plugin:4.2.rc1:check (default-cli) @ core ---
[INFO] Checking licenses...
[INFO] Checking licenses in dependencies using class com.mycila.maven.plugin.license.dependencies.MavenProjectLicenses
[INFO] Discovered dependencies after filtering: 5
[WARNING] Could not get project from dependency's artifact: null
[WARNING] Could not get project from dependency's artifact: null
[WARNING] Could not get project from dependency's artifact: null
[WARNING] Could not get project from dependency's artifact: null

Request:

applyable when <dependencyEnforce>true</dependencyEnforce>

  • provide a filter for undefined licenses to APPROVE or DENY them
  • don't skip execution of ARTIFACT_PATTERN filter

@rremer : could you please have a quick look ? I suspect this is caused by the introduction of the dependency enforer plugin ?