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 -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
GenerateLandingPagesMojo
public GenerateLandingPagesMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionExecutes the landing page generation goal.This method:
- Skips execution if
skip=trueor project is not a POM - Scans all reactor projects for JaCoCo and JXR reports
- Generates
coverage.htmlif coverage reports exist - Generates
source-xref.htmlif xref reports exist
Output is written to
target/stagingif it exists, otherwisetarget/site.- Throws:
org.apache.maven.plugin.MojoExecutionException- if template loading or file writing fails
- Skips execution if
-