public abstract class GitRepositoryValidator
extends org.apache.maven.plugin.AbstractMojo
| Constructor and Description |
|---|
GitRepositoryValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
failBuildBecauseRepoCouldNotBeFound(Exception e)
Throws a MojoFailureException to fail the build.
|
protected void |
validateGitRepository(org.apache.maven.project.MavenProject project)
Check that a project has a git repository initialized.
|
getLog, getPluginContext, setLog, setPluginContextprotected void validateGitRepository(org.apache.maven.project.MavenProject project)
throws org.apache.maven.plugin.MojoFailureException
project - the Maven project to check.org.apache.maven.plugin.MojoFailureException - if no git repository could be found.protected void failBuildBecauseRepoCouldNotBeFound(Exception e) throws org.apache.maven.plugin.MojoFailureException
e - an exception that caused the build to fail.org.apache.maven.plugin.MojoFailureException - to fail the build and with details of the failure.Copyright © 2023. All rights reserved.