Class GenerateLandingPagesMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.guinetik.terminaljavadocs.plugin.GenerateLandingPagesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generate-landing-pages", defaultPhase=POST_SITE, aggregator=true) public class GenerateLandingPagesMojo extends org.apache.maven.plugin.AbstractMojo
Generates landing pages for code coverage and source xref reports by scanning reactor modules for actual generated reports.
  • Field Summary

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Executes the landing page generation goal.

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GenerateLandingPagesMojo

      public GenerateLandingPagesMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Executes the landing page generation goal.

      This method:

      1. Skips execution if skip=true or project is not a POM
      2. Scans all reactor projects for JaCoCo and JXR reports
      3. Generates coverage.html if coverage reports exist
      4. Generates source-xref.html if xref reports exist

      Output is written to target/staging if it exists, otherwise target/site.

      Throws:
      org.apache.maven.plugin.MojoExecutionException - if template loading or file writing fails