Class SiteMojo

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
SiteJarMojo

@Mojo(name="site", requiresDependencyResolution=TEST, requiresReports=true, threadSafe=true) public class SiteMojo extends AbstractSiteRenderingMojo
Generates the site for a single project.

Note that links between module sites in a multimodule build will not work, since local build directory structure doesn't match deployed site.

Author:
Emmanuel Venisse, Vincent Siveton
  • Field Details

    • outputDirectory

      @Parameter(property="siteOutputDirectory", defaultValue="${project.reporting.outputDirectory}") protected File outputDirectory
      Directory where the project sites and report distributions will be generated (as html/css/...).
  • Constructor Details

    • SiteMojo

      @Inject public SiteMojo(org.apache.maven.doxia.site.inheritance.SiteModelInheritanceAssembler assembler, org.apache.maven.doxia.siterenderer.SiteRenderer siteRenderer, org.apache.maven.reporting.exec.MavenReportExecutor mavenReportExecutor)
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • getProject

      public org.apache.maven.project.MavenProject getProject()
    • getSession

      public org.apache.maven.execution.MavenSession getSession()