Class SiteDeployMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.site.AbstractSiteMojo
org.apache.maven.plugins.site.deploy.AbstractDeployMojo
org.apache.maven.plugins.site.deploy.SiteDeployMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
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
-
Field Summary
Fields inherited from class AbstractDeployMojo
mavenSession, settingsDecrypterFields inherited from class AbstractSiteMojo
i18n, project, siteTool, skipFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.maven.model.SiteDeploy directly to the current project's distribution management site.protected StringDeploy distribution site url is directly the current project value.protected booleanisDeploy()Detect if the mojo is staging or deploying.Methods inherited from class AbstractDeployMojo
appendSlash, execute, getAuthenticationInfo, getDeployModuleDirectory, getDeploySite, getSite, getTopDistributionManagementSiteUrl, getTopLevelProjectMethods inherited from class AbstractSiteMojo
getLocalesMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
SiteDeployMojo
public SiteDeployMojo()
-
-
Method Details
-
isDeploy
protected boolean isDeploy()Description copied from class:AbstractDeployMojoDetect if the mojo is staging or deploying.- Specified by:
isDeployin classAbstractDeployMojo- Returns:
trueif the mojo is for deploy and not staging (local or deploy)
-
determineTopDistributionManagementSiteUrl
protected String determineTopDistributionManagementSiteUrl() throws org.apache.maven.plugin.MojoExecutionExceptionDeploy distribution site url is directly the current project value.- Specified by:
determineTopDistributionManagementSiteUrlin classAbstractDeployMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
determineDeploySite
protected org.apache.maven.model.Site determineDeploySite() throws org.apache.maven.plugin.MojoExecutionExceptionDeploy directly to the current project's distribution management site.- Specified by:
determineDeploySitein classAbstractDeployMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-