org.apache.maven.plugins.site
Class SiteStageDeployMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.site.AbstractSiteMojo
org.apache.maven.plugins.site.AbstractSiteRenderingMojo
org.apache.maven.plugins.site.SiteMojo
org.apache.maven.plugins.site.SiteStageMojo
org.apache.maven.plugins.site.SiteStageDeployMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class SiteStageDeployMojo
- extends SiteStageMojo
Deploys the generated site to a staging or mock directory to the site URL
specified in the <distributionManagement> section of the
POM. It supports scp and file protocols for
deployment.
- Version:
- $Id: SiteStageDeployMojo.java 940318 2010-05-02 20:45:51Z hboutemy $
- Author:
- Vincent Siveton
| Fields inherited from class org.apache.maven.plugins.site.AbstractSiteRenderingMojo |
artifactFactory, artifactResolver, assembler, attributes, generatedSiteDirectory, mavenReportExecutor, mavenSession, moduleExcludes, plexusContainer, project, repositories, siteRenderer |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
void |
execute()
Generate the project site
throws MojoExecutionException if any |
protected java.lang.String |
getStagingSiteURL(org.apache.maven.project.MavenProject currentProject,
java.util.List<org.apache.maven.project.MavenProject> reactorProjects,
java.lang.String usersStagingSiteURL)
Find the URL where staging will take place. |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SiteStageDeployMojo
public SiteStageDeployMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
-
Generate the project site
throws MojoExecutionException if any
- Specified by:
execute in interface org.apache.maven.plugin.Mojo- Overrides:
execute in class SiteStageMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException- See Also:
Mojo.execute()
getStagingSiteURL
protected java.lang.String getStagingSiteURL(org.apache.maven.project.MavenProject currentProject,
java.util.List<org.apache.maven.project.MavenProject> reactorProjects,
java.lang.String usersStagingSiteURL)
- Find the URL where staging will take place.
- Parameters:
currentProject - The currently executing projectreactorProjects - The projects in the reactorusersStagingSiteURL - The staging site URL as suggested by the user's configuration
- Returns:
- the site URL for staging
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.