@Mojo(name="site", requiresDependencyResolution=TEST, requiresReports=true, threadSafe=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, mavenReportExecutor, mavenSession, mojoExecution, outputTimestamp, siteRenderer
reactorProjects, remoteProjectRepositories, repoSession, siteDirectory
i18n, project, siteTool, skip
Constructor and Description |
---|
SiteMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
org.apache.maven.project.MavenProject |
getProject() |
org.apache.maven.execution.MavenSession |
getSession() |
categoriseReports, checkInputEncoding, createSiteRenderingContext, getInputEncoding, getOutputEncoding, getReports, locateDocuments, locateReports, populateReportItems
prepareSiteModel
getLocales
@Parameter(property="siteOutputDirectory", defaultValue="${project.reporting.outputDirectory}") protected File outputDirectory
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
public org.apache.maven.project.MavenProject getProject()
public org.apache.maven.execution.MavenSession getSession()
Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.