org.apache.maven.plugins.site
Class AbstractStagingMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugins.site.AbstractSiteMojo
          extended by org.apache.maven.plugins.site.AbstractDeployMojo
              extended by org.apache.maven.plugins.site.AbstractStagingMojo
All Implemented Interfaces:
ContextEnabled, Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Direct Known Subclasses:
SiteStageDeployMojo, SiteStageMojo

public abstract class AbstractStagingMojo
extends AbstractDeployMojo

Abstract base class for staging mojos.

Since:
3.3
Author:
hboutemy

Field Summary
protected static String DEFAULT_STAGING_DIRECTORY
          The String "staging/".
protected  String topSiteURL
          Top distribution management site url, for manual configuration when auto-calculated value doesn't match expectations.
 
Fields inherited from class org.apache.maven.plugins.site.AbstractDeployMojo
mavenSession
 
Fields inherited from class org.apache.maven.plugins.site.AbstractSiteMojo
i18n, locales, localRepository, project, reactorProjects, siteDirectory, siteTool
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractStagingMojo()
           
 
Method Summary
protected  String determineTopDistributionManagementSiteUrl()
          By default, staging mojos will get their top distribution management site url by getting top parent with the same site, which is a good heuristics.
 
Methods inherited from class org.apache.maven.plugins.site.AbstractDeployMojo
appendSlash, contextualize, determineDeploySite, execute, getDeployModuleDirectory, getDeploySite, getProxyInfo, getSite, getTopDistributionManagementSiteUrl, getTopLevelProject, isDeploy
 
Methods inherited from class org.apache.maven.plugins.site.AbstractSiteMojo
getInputEncoding, getMavenVersion, getOutputEncoding, isMaven3OrMore
 
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
 

Field Detail

topSiteURL

@Parameter(property="topSiteURL")
protected String topSiteURL
Top distribution management site url, for manual configuration when auto-calculated value doesn't match expectations. Relative module directory will be calculated from this url.


DEFAULT_STAGING_DIRECTORY

protected static final String DEFAULT_STAGING_DIRECTORY
The String "staging/".

See Also:
Constant Field Values
Constructor Detail

AbstractStagingMojo

public AbstractStagingMojo()
Method Detail

determineTopDistributionManagementSiteUrl

protected String determineTopDistributionManagementSiteUrl()
                                                    throws MojoExecutionException
By default, staging mojos will get their top distribution management site url by getting top parent with the same site, which is a good heuristics. But in case the default value doesn't match expectations, topSiteURL can be configured: it will be used instead.

Specified by:
determineTopDistributionManagementSiteUrl in class AbstractDeployMojo
Throws:
MojoExecutionException


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.