Class LicenseCheckMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    public final class LicenseCheckMojo
    extends AbstractLicenseMojo
    Check if the source files of the project have a valid license header
    • Field Detail

      • failIfMissing

        protected boolean failIfMissing
        Whether to fail the build if some file miss license header
      • missingHeaders

        public final java.util.Collection<java.io.File> missingHeaders
    • Constructor Detail

      • LicenseCheckMojo

        public LicenseCheckMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException