@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.
This goal requires the site to already have been generated using the site goal,
such as by calling mvn site
.
DEFAULT_STAGING_DIRECTORY, topSiteURL
mavenSession
i18n, localRepository, project, reactorProjects, runtimeInformation, siteTool, skip
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
getLocales, getMavenVersion
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–2021 The Apache Software Foundation. All rights reserved.