@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, project, siteTool, skip
Constructor and Description |
---|
SiteStageMojo() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.maven.model.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, getAuthenticationInfo, getDeployModuleDirectory, getDeploySite, getSite, getTopDistributionManagementSiteUrl, getTopLevelProject
getLocales
public void execute() throws org.apache.maven.plugin.MojoExecutionException
AbstractDeployMojo
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractDeployMojo
org.apache.maven.plugin.MojoExecutionException
protected boolean isDeploy()
AbstractDeployMojo
isDeploy
in class AbstractDeployMojo
true
if the mojo is for deploy and not staging (local or deploy)protected org.apache.maven.model.Site determineDeploySite() throws org.apache.maven.plugin.MojoExecutionException
determineDeploySite
in class AbstractDeployMojo
org.apache.maven.plugin.MojoExecutionException
protected File getExecutionRootBuildDirectory()
Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.