mojohaus/license-maven-plugin

Allow license selection when project includes multiple licenses

Open

#88 opened on May 12, 2017

View on GitHub
 (3 comments) (4 reactions) (0 assignees)Java (127 forks)auto 404
add-third-partyenhancementhelp wanted

Repository metrics

Stars
 (115 stars)
PR merge metrics
 (PR metrics pending)

Description

When running the third-party goal and pulling in a dependency which allows multiple license choices, it would be nice if you could "choose" one the licenses to be the one displayed in the output file (since that is what you are doing anyway when you include the project).

It seems like the "overrideFile" would potentially provide this functionality, but it doesn't seem to work that way in practice (i.e. providing a single override does not remove the other license from the output list).

Alternately, "excludeLicenses" could do this. if a project has multiple licenses and one of them is excluded, just include the project using only the non-excluded license. again, it doesn't seem to work that way today.

Contributor guide