Class 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 AbstractSiteRenderingMojo
Starts the site up, rendering documents as requested for faster editing. It uses Jetty as the web server.
Version:
$Id: SiteRunMojo.java 1742353 2016-05-05 03:22:53Z schulte $
  • Field Details

    • tempWebappDirectory

      @Parameter(defaultValue="${project.build.directory}/site-webapp") private File tempWebappDirectory
      Where to create the dummy web application.
    • port

      @Parameter(property="port", defaultValue="8080") private int port
      The port to execute the HTTP server on.
    • MAX_IDLE_TIME

      private static final int MAX_IDLE_TIME
      See Also:
  • Constructor Details

    • SiteRunMojo

      public SiteRunMojo()
  • 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
      See Also:
      • Mojo.execute()
    • createWebApplication

      private org.eclipse.jetty.webapp.WebAppContext createWebApplication() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getDefaultConnector

      private org.eclipse.jetty.server.ServerConnector getDefaultConnector(org.eclipse.jetty.server.Server server)
    • setTempWebappDirectory

      public void setTempWebappDirectory(File tempWebappDirectory)
    • setPort

      public void setPort(int port)