@Mojo(name="run", aggregator=true, requiresReports=true) public class SiteRunMojo extends AbstractSiteRenderingMojo
Modifier and Type | Field and Description |
---|---|
private static int |
MAX_IDLE_TIME |
private int |
port
The port to execute the HTTP server on.
|
private java.io.File |
tempWebappDirectory
Where to create the dummy web application.
|
generatedSiteDirectory, mavenSession, reports, siteRenderer
repositories, siteDirectory
i18n, localRepository, project, reactorProjects, siteTool, skip
Constructor and Description |
---|
SiteRunMojo() |
Modifier and Type | Method and Description |
---|---|
private org.eclipse.jetty.webapp.WebAppContext |
createWebApplication() |
void |
execute() |
private org.eclipse.jetty.server.ServerConnector |
getDefaultConnector(org.eclipse.jetty.server.Server server) |
void |
setPort(int port) |
void |
setTempWebappDirectory(java.io.File tempWebappDirectory) |
categoriseReports, checkInputEncoding, contextualize, createSiteRenderingContext, getInputEncoding, getOutputEncoding, getReports, locateDocuments, locateReports, populateReportItems
prepareDecorationModel
getLocales, getMavenVersion, isMaven3OrMore
@Parameter(defaultValue="${project.build.directory}/site-webapp") private java.io.File tempWebappDirectory
@Parameter(property="port", defaultValue="8080") private int port
private static final int MAX_IDLE_TIME
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Mojo.execute()
private org.eclipse.jetty.webapp.WebAppContext createWebApplication() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
private org.eclipse.jetty.server.ServerConnector getDefaultConnector(org.eclipse.jetty.server.Server server)
public void setTempWebappDirectory(java.io.File tempWebappDirectory)
public void setPort(int port)