Class GitMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.hazendaz.maven.makeself.AbstractGitMojo
com.hazendaz.maven.makeself.GitMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="git", defaultPhase=NONE, requiresProject=false) public class GitMojo extends AbstractGitMojo
The Class GitMojo.

Downloads and installs portable Git on Windows from the Maven repository. This goal can be used standalone in any Maven project (or without a project) to obtain a secure, vetted copy of portable Git without needing to use a browser or locate the artifact in the local Maven repository manually.

On non-Windows systems this goal is a no-op since makeself and bash are natively available.

  • Constructor Details

    • GitMojo

      public GitMojo()
  • Method Details

    • 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