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
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 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.Site
determineDeploySite()
Deploy directly to the current project's distribution management site.protected java.lang.String
determineTopDistributionManagementSiteUrl()
Deploy distribution site url is directly the current project value.protected boolean
isDeploy()
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:AbstractDeployMojo
Detect if the mojo is staging or deploying.- Specified by:
isDeploy
in classAbstractDeployMojo
- Returns:
true
if the mojo is for deploy and not staging (local or deploy)
-
determineTopDistributionManagementSiteUrl
protected java.lang.String determineTopDistributionManagementSiteUrl() throws org.apache.maven.plugin.MojoExecutionException
Deploy distribution site url is directly the current project value.- Specified by:
determineTopDistributionManagementSiteUrl
in classAbstractDeployMojo
- 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 classAbstractDeployMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-