public class JettyRunWarMojo extends AbstractJettyMojo
This goal is used to assemble your webapp into a war and automatically deploy it to Jetty.
Once invoked, the plugin can be configured to run continuously, scanning for changes in the project and to the war file and automatically performing a hot redeploy when necessary.
You may also specify the location of a jetty.xml file whose contents will be applied before any plugin configuration. This can be used, for example, to deploy a static webapp that is not part of your maven build.
There is a reference guide to the configuration parameters for this plugin, and more detailed information with examples in the Configuration Guide.
consoleScanner, contextHandlers, contextXml, daemon, dumpOnStart, excludedGoals, execution, httpConnector, jettyXml, loginServices, pluginArtifacts, PORT_SYSPROPERTY, project, projectArtifacts, reload, requestLog, scanIntervalSeconds, scanList, scanner, scannerListeners, server, skip, stopKey, stopPort, systemProperties, systemPropertiesFile, useProvidedScope, webApp
Constructor and Description |
---|
JettyRunWarMojo() |
Modifier and Type | Method and Description |
---|---|
void |
checkPomConfiguration() |
void |
configureScanner() |
void |
configureWebApplication()
Subclasses should invoke this to setup basic info
on the webapp
|
void |
execute() |
void |
restartWebApp(boolean reconfigureScanner) |
applyJettyXml, configurePluginClasspath, findJettyWebXmlFile, finishConfigurationBeforeStart, getJettyXmlFiles, isExcluded, isPluginArtifact, setSystemProperties, setSystemPropertiesFile, startConsoleScanner, startJetty
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractJettyMojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Mojo.execute()
public void configureWebApplication() throws Exception
AbstractJettyMojo
configureWebApplication
in class AbstractJettyMojo
org.apache.maven.plugin.MojoExecutionException
Exception
public void checkPomConfiguration() throws org.apache.maven.plugin.MojoExecutionException
checkPomConfiguration
in class AbstractJettyMojo
org.apache.maven.plugin.MojoExecutionException
AbstractJettyMojo.checkPomConfiguration()
public void configureScanner() throws org.apache.maven.plugin.MojoExecutionException
configureScanner
in class AbstractJettyMojo
org.apache.maven.plugin.MojoExecutionException
AbstractJettyMojo.configureScanner()
public void restartWebApp(boolean reconfigureScanner) throws Exception
restartWebApp
in class AbstractJettyMojo
Exception
AbstractJettyMojo.restartWebApp(boolean)
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.