@Mojo(name="stage", requiresDependencyResolution=TEST) public class SiteStageMojo extends AbstractStagingMojo
<distributionManagement>
section of the
POM.
It can be used to test that links between module sites in a multi-module build work.
DEFAULT_STAGING_DIRECTORY, topSiteURL
mavenSession
i18n, locales, localRepository, project, reactorProjects, siteDirectory, siteTool
Constructor and Description |
---|
SiteStageMojo() |
Modifier and Type | Method and Description |
---|---|
protected Site |
determineDeploySite() |
void |
execute() |
protected File |
getExecutionRootBuildDirectory()
Find the build directory of the execution root project in the reactor.
|
protected boolean |
isDeploy()
Detect if the mojo is staging or deploying.
|
determineTopDistributionManagementSiteUrl
appendSlash, contextualize, getDeployModuleDirectory, getDeploySite, getProxyInfo, getSite, getTopDistributionManagementSiteUrl, getTopLevelProject
getInputEncoding, getMavenVersion, getOutputEncoding, isMaven3OrMore
getLog, getPluginContext, setLog, setPluginContext
public void execute() throws MojoExecutionException
AbstractDeployMojo
execute
in interface Mojo
execute
in class AbstractDeployMojo
MojoExecutionException
protected boolean isDeploy()
AbstractDeployMojo
isDeploy
in class AbstractDeployMojo
true
if the mojo is for deploy and not staging (local or deploy)protected Site determineDeploySite() throws MojoExecutionException
determineDeploySite
in class AbstractDeployMojo
MojoExecutionException
protected File getExecutionRootBuildDirectory()
Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.