Class BranchMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.scm.plugin.AbstractScmMojo
org.apache.maven.scm.plugin.BranchMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Branch the project.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe branch name.private StringThe message applied to the tag creation.private booleanCurrently only implemented with Subversion.private booleanCurrently only implemented with svn scm.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
ConstructorsConstructorDescriptionBranchMojo(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
-
branch
The branch name. -
message
The message applied to the tag creation. -
remoteBranching
@Parameter(property="remoteBranching", defaultValue="true") private boolean remoteBranchingCurrently only implemented with svn scm. Enable a workaround to prevent issue due to svn client > 1.5.0 (https://issues.apache.org/jira/browse/SCM-406)- Since:
- 1.3
-
pinExternals
@Parameter(property="pinExternals", defaultValue="false") private boolean pinExternalsCurrently only implemented with Subversion. Enable the "--pin-externals" option in svn copy commands which is new in Subversion 1.9.- Since:
- 1.11.0
-
-
Constructor Details
-
BranchMojo
@Inject public BranchMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractScmMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-