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
@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
scpprotocol, 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 org.apache.maven.plugins.site.deploy.AbstractDeployMojo
mavenSession, settingsDecrypter
-
Fields inherited from class org.apache.maven.plugins.site.AbstractSiteMojo
i18n, project, siteTool, skip
-
-
Constructor Summary
Constructors Constructor Description SiteDeployMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.maven.model.SitedetermineDeploySite()Deploy directly to the current project's distribution management site.protected java.lang.StringdetermineTopDistributionManagementSiteUrl()Deploy distribution site url is directly the current project value.protected booleanisDeploy()Detect if the mojo is staging or deploying.-
Methods inherited from class org.apache.maven.plugins.site.deploy.AbstractDeployMojo
appendSlash, execute, getAuthenticationInfo, getDeployModuleDirectory, getDeploySite, getSite, getTopDistributionManagementSiteUrl, getTopLevelProject
-
Methods inherited from class org.apache.maven.plugins.site.AbstractSiteMojo
getLocales
-
-
-
-
Method Detail
-
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 java.lang.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
-
-