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.
-
Field Summary
Fields inherited from class AbstractGitMojo
gitPath, portableGit, remoteRepositories, repoSession, repositorySystemFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractGitMojo
checkGitSetup, extractPortableGit, installGit, isWindows, runInstallerMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
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.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-