Class SiteDeployMojo

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

@Mojo(name="deploy") public class SiteDeployMojo extends AbstractDeployMojo
Deploys the generated site using wagon supported protocols to the site URL specified in the <distributionManagement> section of the POM.

For scp protocol, the website files are packaged by wagon into zip archive, then the archive is transfered to the remote host, next it is un-archived which is much faster than making a file by file copy.

Since:
2.0
  • Constructor Details

    • SiteDeployMojo

      public SiteDeployMojo()
  • Method Details

    • isDeploy

      protected boolean isDeploy()
      Description copied from class: AbstractDeployMojo
      Detect if the mojo is staging or deploying.
      Specified by:
      isDeploy in class AbstractDeployMojo
      Returns:
      true if the mojo is for deploy and not staging (local or deploy)
    • determineTopDistributionManagementSiteUrl

      protected String determineTopDistributionManagementSiteUrl() throws org.apache.maven.plugin.MojoExecutionException
      Deploy distribution site url is directly the current project value.
      Specified by:
      determineTopDistributionManagementSiteUrl in class AbstractDeployMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • determineDeploySite

      protected org.apache.maven.model.Site determineDeploySite() throws org.apache.maven.plugin.MojoExecutionException
      Deploy directly to the current project's distribution management site.
      Specified by:
      determineDeploySite in class AbstractDeployMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException