@Mojo(name="check-local-modification") public class CheckLocalModificationsMojo extends AbstractScmMojo
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
baseDirectory
current directory
|
private java.lang.String |
errorMessage
Custom error message
|
private boolean |
skip
Skip the check for local modifications if set to
true. |
| Constructor and Description |
|---|
CheckLocalModificationsMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
checkResult, getBasedir, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectory@Parameter(property="scm.checkLocalModification.errorMessage",
defaultValue="The build will stop as there is local modifications")
private java.lang.String errorMessage
@Parameter(property="scm.checkLocalModification.skip",
defaultValue="false")
private boolean skip
true.@Parameter(defaultValue="${basedir}",
readonly=true)
private java.io.File baseDirectory
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
AbstractScmMojoexecute in interface org.apache.maven.plugin.Mojoexecute in class AbstractScmMojoorg.apache.maven.plugin.MojoExecutionException