@Mojo(name="site", requiresDependencyResolution=TEST, requiresReports=true) public class SiteMojo extends AbstractSiteRenderingMojo
Note that links between module sites in a multi module build will not work, since local build directory structure doesn't match deployed site.
Modifier and Type | Field and Description |
---|---|
protected File |
outputDirectory
Directory where the project sites and report distributions will be generated (as html/css/...).
|
generatedSiteDirectory, mavenSession, reports, siteRenderer
repositories, siteDirectory
i18n, localRepository, project, reactorProjects, siteTool, skip
Constructor and Description |
---|
SiteMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Generate the project site
throws MojoExecutionException if any
|
MavenProject |
getProject() |
MavenSession |
getSession() |
categoriseReports, checkInputEncoding, contextualize, createSiteRenderingContext, getInputEncoding, getOutputEncoding, getReports, locateDocuments, locateReports, populateReportItems
prepareDecorationModel
getLocales, getMavenVersion, isMaven3OrMore
getLog, getPluginContext, setLog, setPluginContext
@Parameter(property="siteOutputDirectory", defaultValue="${project.reporting.outputDirectory}") protected File outputDirectory
public void execute() throws MojoExecutionException, MojoFailureException
MojoExecutionException
MojoFailureException
Mojo.execute()
public MavenProject getProject()
public MavenSession getSession()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.