@Mojo(name="update",
defaultPhase=INITIALIZE)
public class GitSubmoduleUpdateMojo
extends org.apache.maven.plugin.AbstractMojo
git submodules in a Maven project. It is a must when building
for release. Typically, the maven-release-plugin will not include submodules when cloning the repository in
the sandbox environment during release builds. With this plugin, the submodules will be updated at the beginning of
the build process. As a result, one doesn't need to resort to writing custom scripts to update submodules.| Constructor and Description |
|---|
GitSubmoduleUpdateMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
void |
execute(org.eclipse.jgit.api.Git git)
Perform the actual work of a plugin goal.
|
boolean |
isVerbose() |
public void execute(org.eclipse.jgit.api.Git git)
throws Exception
Git instance, as this is automatically performed once this method returns.git - the git repository to work with.Exception - if an error occurs during execution.public boolean isVerbose()
true if the goal is executed in verbose mode, false otherwise.public final void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2024 SEART. All rights reserved.