Class SiteRunMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.site.AbstractSiteMojo
-
- org.apache.maven.plugins.site.descriptor.AbstractSiteDescriptorMojo
-
- org.apache.maven.plugins.site.render.AbstractSiteRenderingMojo
-
- org.apache.maven.plugins.site.run.SiteRunMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
@Mojo(name="run", aggregator=true, requiresReports=true) public class SiteRunMojo extends AbstractSiteRenderingMojoStarts the site up, rendering documents as requested for faster editing. It uses Jetty as the web server.
-
-
Field Summary
Fields Modifier and Type Field Description private static intMAX_IDLE_TIMEprivate intportThe port to execute the HTTP server on.private java.io.FiletempWebappDirectoryWhere to create the dummy web application.-
Fields inherited from class org.apache.maven.plugins.site.render.AbstractSiteRenderingMojo
generatedSiteDirectory, mavenSession, reports, siteRenderer
-
Fields inherited from class org.apache.maven.plugins.site.descriptor.AbstractSiteDescriptorMojo
repositories, siteDirectory
-
Fields inherited from class org.apache.maven.plugins.site.AbstractSiteMojo
i18n, localRepository, project, reactorProjects, siteTool, skip
-
-
Constructor Summary
Constructors Constructor Description SiteRunMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private org.eclipse.jetty.webapp.WebAppContextcreateWebApplication()voidexecute()voidsetPort(int port)voidsetTempWebappDirectory(java.io.File tempWebappDirectory)-
Methods inherited from class org.apache.maven.plugins.site.render.AbstractSiteRenderingMojo
categoriseReports, checkInputEncoding, contextualize, createSiteRenderingContext, getInputEncoding, getOutputEncoding, getReports, locateDocuments, locateReports, populateReportItems
-
Methods inherited from class org.apache.maven.plugins.site.descriptor.AbstractSiteDescriptorMojo
prepareDecorationModel
-
Methods inherited from class org.apache.maven.plugins.site.AbstractSiteMojo
getLocales, getMavenVersion, isMaven3OrMore
-
-
-
-
Field Detail
-
tempWebappDirectory
@Parameter(defaultValue="${project.build.directory}/site-webapp") private java.io.File tempWebappDirectoryWhere to create the dummy web application.
-
port
@Parameter(property="port", defaultValue="8080") private int portThe port to execute the HTTP server on.
-
MAX_IDLE_TIME
private static final int MAX_IDLE_TIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException- See Also:
Mojo.execute()
-
createWebApplication
private org.eclipse.jetty.webapp.WebAppContext createWebApplication() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setTempWebappDirectory
public void setTempWebappDirectory(java.io.File tempWebappDirectory)
-
setPort
public void setPort(int port)
-
-