@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.
|
generatedSiteDirectory, mavenSession, reports, siteRenderer
i18n, locales, localRepository, project, reactorProjects, siteDirectory, siteTool
Constructor and Description |
---|
SiteMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Generate the project site
throws MojoExecutionException if any
|
MavenProject |
getProject() |
categoriseReports, contextualize, createSiteRenderingContext, getReports, locateDocuments, locateReports, populateReportItems
getInputEncoding, getMavenVersion, getOutputEncoding, 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()
Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.