Class CheckLocalModificationsMojo

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

    @Mojo(name="check-local-modification")
    public class CheckLocalModificationsMojo
    extends AbstractScmMojo
    This mojo will fail the build if there is any local modifications
    Since:
    1.2
    • Field Detail

      • errorMessage

        @Parameter(property="scm.checkLocalModification.errorMessage",
                   defaultValue="The build will stop as there is local modifications")
        private java.lang.String errorMessage
        Custom error message
      • skip

        @Parameter(property="scm.checkLocalModification.skip",
                   defaultValue="false")
        private boolean skip
        Skip the check for local modifications if set to true.
    • Constructor Detail

      • CheckLocalModificationsMojo

        public CheckLocalModificationsMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Description copied from class: AbstractScmMojo
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class AbstractScmMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException