Class CheckLocalModificationsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.scm.plugin.AbstractScmMojo
org.apache.maven.scm.plugin.CheckLocalModificationsMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="check-local-modification")
public class CheckLocalModificationsMojo
extends AbstractScmMojo
This mojo will fail the build if there is any local modifications.
- Since:
- 1.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringCustom error message.private booleanSkip the check for local modifications if set totrue.Fields inherited from class AbstractScmMojo
VALID_VERSION_TYPES, VERSION_TYPE_BRANCH, VERSION_TYPE_REVISION, VERSION_TYPE_TAGFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionCheckLocalModificationsMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter) -
Method Summary
Methods inherited from class AbstractScmMojo
checkResult, getBasedir, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectoryMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
errorMessage
@Parameter(property="scm.checkLocalModification.errorMessage", defaultValue="The build will stop as there is local modifications") private String errorMessageCustom error message. -
skip
@Parameter(property="scm.checkLocalModification.skip", defaultValue="false") private boolean skipSkip the check for local modifications if set totrue.
-
-
Constructor Details
-
CheckLocalModificationsMojo
@Inject public CheckLocalModificationsMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from class:AbstractScmMojo- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractScmMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-