Class LicenseFormatMojo

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

    public final class LicenseFormatMojo
    extends AbstractLicenseMojo
    Reformat files with a missing header to add it
    Author:
    Mathieu Carbou (mathieu.carbou@gmail.com)
    • Field Detail

      • dryRun

        protected boolean dryRun
        Wheter to treat multi-modules projects as only one project (true) or treat multi-module projects separately (false, by default)
      • skipExistingHeaders

        protected boolean skipExistingHeaders
        Wheter to skip file where a header has been detected
    • Constructor Detail

      • LicenseFormatMojo

        public LicenseFormatMojo()
    • 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