@Mojo(name="run-war",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
@Execute(phase=PACKAGE)
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 runs continuously and can be configured to scan for changes in the project and to the war file and automatically perform 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.
Runs jetty on a war fileconsoleScanner, contextHandlers, contextXml, dumpOnStart, excludedGoals, execution, httpConnector, jettyXml, loginServices, nonBlocking, pluginArtifacts, project, projectArtifacts, reload, requestLog, scanIntervalSeconds, scanner, server, serverSupport, skip, stopKey, stopPort, supportedPackagings, systemProperties, systemPropertiesFile, useProvidedScope, webApp| Constructor and Description |
|---|
JettyRunWarMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureScanner() |
void |
configureWebApplication()
Subclasses should invoke this to setup basic info
on the webapp
|
void |
execute() |
void |
finishConfigurationBeforeStart() |
void |
restartWebApp(boolean reconfigureScanner) |
applyJettyXml, checkPackagingConfiguration, checkPomConfiguration, configureMonitor, configurePluginClasspath, findJettyWebXmlFile, getJettyXmlFiles, getSkipMessage, isConfigurationSupported, isExcluded, isPluginArtifact, isScanningEnabled, printSystemProperties, setSystemProperties, setSystemPropertiesFile, startConsoleScanner, startJetty, startScanner, stopScannerpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractJettyMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionMojo.execute()public void finishConfigurationBeforeStart()
throws java.lang.Exception
finishConfigurationBeforeStart in class AbstractJettyMojojava.lang.Exceptionpublic void configureWebApplication()
throws java.lang.Exception
AbstractJettyMojoconfigureWebApplication in class AbstractJettyMojojava.lang.Exception - if unable to configure web applicationpublic void configureScanner()
throws org.apache.maven.plugin.MojoExecutionException
configureScanner in class AbstractJettyMojoorg.apache.maven.plugin.MojoExecutionExceptionAbstractJettyMojo.configureScanner()public void restartWebApp(boolean reconfigureScanner)
throws java.lang.Exception
restartWebApp in class AbstractJettyMojojava.lang.ExceptionAbstractJettyMojo.restartWebApp(boolean)Copyright © 1995–2022 Webtide. All rights reserved.