Class ExportMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.scm.plugin.AbstractScmMojo
org.apache.maven.scm.plugin.ExportMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="export", requiresProject=false) public class ExportMojo extends AbstractScmMojo
Get a fresh exported copy of the latest source from the configured scm url.
  • Field Details

    • scmVersionType

      @Parameter(property="scmVersionType") private String scmVersionType
      The version type (branch/tag/revision) of scmVersion.
    • scmVersion

      @Parameter(property="scmVersion") private String scmVersion
      The version (revision number/branch name/tag name).
    • exportDirectory

      @Parameter(property="exportDirectory", defaultValue="${project.build.directory}/export", required=true) private File exportDirectory
      The directory to export the sources to.
    • skipExportIfExists

      @Parameter(property="skipExportIfExists", defaultValue="false") private boolean skipExportIfExists
      Skip export if exportDirectory exists.
  • Constructor Details

    • ExportMojo

      public ExportMojo()
  • 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
    • getExportDirectory

      protected File getExportDirectory()
    • setExportDirectory

      public void setExportDirectory(File exportDirectory)
    • export

      protected void export() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException