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 Details

    • branch

      @Parameter(property="branch", required=true) private String branch
      The branch name.
    • message

      @Parameter(property="message") private 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
    • pinExternals

      @Parameter(property="pinExternals", defaultValue="false") private boolean pinExternals
      Currently 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

      public BranchMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Overrides:
      execute in class AbstractScmMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException