Class SetupMojo

java.lang.Object
network.ike.plugin.SetupMojo
All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo

@Mojo(name="setup", projectRequired=false) public class SetupMojo extends Object implements org.apache.maven.api.plugin.Mojo
Install VCS bridge git hooks to ~/.git-hooks/.

Installs the pre-commit, post-commit, and pre-push hooks that coordinate git state across Syncthing-paired machines. Only the VCS bridge hooks are written — existing hooks (prepare-commit-msg, commit-msg, post-checkout) are never touched.

After installation, verifies that core.hooksPath is configured to point to ~/.git-hooks/.

Usage: mvnw ike:setup

  • Constructor Details

    • SetupMojo

      public SetupMojo()
      Creates this goal instance.
  • Method Details

    • getLog

      protected org.apache.maven.api.plugin.Log getLog()
      Access the Maven logger.
      Returns:
      the logger
    • execute

      public void execute() throws org.apache.maven.api.plugin.MojoException
      Specified by:
      execute in interface org.apache.maven.api.plugin.Mojo
      Throws:
      org.apache.maven.api.plugin.MojoException