You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./mvnw license:check-file-header -Dlicense.inceptionYear=2024 -Dlicense.organizationName=John\ Doe -Dlicense.projectName=some-project.
It fails with message:
[ERROR] Failed to execute goal org.codehaus.mojo:license-maven-plugin:2.4.0:check-file-header (default-cli) on project some-project: could not init goal CheckFileHeaderMojo for reason : licenseName can not be null, nor empty -> [Help 1]
Looks like licenseName is a required parameter too and should be set manually in the configuration or CLI parameters.
Because when I run
./mvnw license:check-file-header -Dlicense.licenseName=apache_v2 -Dlicense.inceptionYear=2024 -Dlicense.organizationName=John\ Doe -Dlicense.projectName=some-project
it finish successfully.
The text was updated successfully, but these errors were encountered:
I run the plugin on my project, there no any configuration for this plugin.
The POM contains inceptionYear and license info like this:
The goal
check-file-header
has three required parameters: inceptionYear, organizationName and projectName.I use next command line:
./mvnw license:check-file-header -Dlicense.inceptionYear=2024 -Dlicense.organizationName=John\ Doe -Dlicense.projectName=some-project.
It fails with message:
Looks like
licenseName
is a required parameter too and should be set manually in the configuration or CLI parameters.Because when I run
./mvnw license:check-file-header -Dlicense.licenseName=apache_v2 -Dlicense.inceptionYear=2024 -Dlicense.organizationName=John\ Doe -Dlicense.projectName=some-project
it finish successfully.
The text was updated successfully, but these errors were encountered: