@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, siteRendererrepositories, siteDirectoryi18n, 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() |
categoriseReports, checkInputEncoding, contextualize, createSiteRenderingContext, getInputEncoding, getOutputEncoding, getReports, locateDocuments, locateReports, populateReportItemsprepareDecorationModelgetLocales, getMavenVersion, isMaven3OrMoregetLog, getPluginContext, setLog, setPluginContext@Parameter(property="siteOutputDirectory", defaultValue="${project.reporting.outputDirectory}") protected File outputDirectory
public void execute()
throws MojoExecutionException,
MojoFailureException
MojoExecutionExceptionMojoFailureExceptionMojo.execute()public MavenProject getProject()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.