Class InstallHooksMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.cosium.code.format.AbstractMavenGitCodeFormatMojo
com.cosium.code.format.InstallHooksMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="install-hooks", defaultPhase=INITIALIZE, threadSafe=true) public class InstallHooksMojo extends AbstractMavenGitCodeFormatMojo
Installs git hooks on each initialization. Hooks are always overriden in case of changes in:
  • maven installation
  • plugin structure
  • Constructor Details

    • InstallHooksMojo

      public InstallHooksMojo()
  • Method Details

    • execute

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