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.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.apache.maven.plugin.Mojo
- public class SiteStageDeployMojo
- extends SiteStageMojo
- implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
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$
- Author:
- Vincent Siveton
- Is defined by the goal name:
- stage-deploy
- Requires the dependencies in this specified scope:
- test
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
void |
contextualize(org.codehaus.plexus.context.Context context)
|
void |
execute()
Generate the project site
throws MojoExecutionException if any |
protected java.lang.String |
getStagingSiteURL(org.apache.maven.project.MavenProject currentProject,
java.util.List 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
- Description copied from class:
SiteMojo
- 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()
contextualize
public void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
- Specified by:
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Throws:
org.codehaus.plexus.context.ContextException
getStagingSiteURL
protected java.lang.String getStagingSiteURL(org.apache.maven.project.MavenProject currentProject,
java.util.List 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-2009 The Apache Software Foundation. All Rights Reserved.