Package org.apache.maven.scm.plugin
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
@Mojo(name="branch", aggregator=true) public class BranchMojo extends AbstractScmMojo
Branch the project.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
branch
The branch name.private java.lang.String
message
The message applied to the tag creation.private boolean
remoteBranching
currently only implemented with svn scm.
-
Constructor Summary
Constructors Constructor Description BranchMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
Methods inherited from class org.apache.maven.scm.plugin.AbstractScmMojo
checkResult, getBasedir, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectory
-
-
-
-
Field Detail
-
branch
@Parameter(property="branch", required=true) private java.lang.String branch
The branch name.
-
message
@Parameter(property="message") private java.lang.String message
The message applied to the tag creation.
-
remoteBranching
@Parameter(property="remoteBranching", defaultValue="true") private boolean remoteBranching
currently 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
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in classAbstractScmMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-