license-maven-plugin icon indicating copy to clipboard operation
license-maven-plugin copied to clipboard

Infer "licenseName" from POM "licenses.license.name"

Open dmak opened this issue 6 years ago • 1 comments

When executing license:update-project-license goal with not defined licenseName it fails with the following message:

[ERROR] Failed to execute goal org.codehaus.mojo:license-maven-plugin:1.16:update-project-license (default): could not init goal UpdateProjectLicenseMojo for reason : licenseName can not be null, nor empty

It would be nice if plugin could learn/infer license name from POM's licenses → license → name or url.

dmak avatar Nov 07 '18 10:11 dmak

A PR with an integration test would be welcome.

ppalaga avatar Jan 04 '19 13:01 ppalaga