@Mojo(name="deploy-war", requiresDependencyResolution=RUNTIME) @Execute(phase=VALIDATE) public class JettyDeployWar extends JettyRunWarMojo
This goal is used to run Jetty with a pre-assembled war.
It accepts exactly the same options as the run-war goal. However, it doesn't assume that the current artifact is a webapp and doesn't try to assemble it into a war before its execution. So using it makes sense only when used in conjunction with the war configuration parameter pointing to a pre-built WAR.
This goal is useful e.g. for launching a web app in Jetty as a target for unit-tested HTTP client components.
Deploy a pre-assembled warModifier and Type | Field and Description |
---|---|
protected boolean |
daemon
If true, the plugin should continue and not block.
|
consoleScanner, 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 |
---|
JettyDeployWar() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
void |
finishConfigurationBeforeStart() |
configureScanner, configureWebApplication, restartWebApp
applyJettyXml, checkPackagingConfiguration, checkPomConfiguration, configureMonitor, configurePluginClasspath, findJettyWebXmlFile, getJettyXmlFiles, getSkipMessage, isConfigurationSupported, isExcluded, isPluginArtifact, isScanningEnabled, printSystemProperties, setSystemProperties, setSystemPropertiesFile, startConsoleScanner, startJetty, startScanner, stopScanner
@Parameter(defaultValue="true") protected boolean daemon
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 JettyRunWarMojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Mojo.execute()
public void finishConfigurationBeforeStart() throws java.lang.Exception
finishConfigurationBeforeStart
in class JettyRunWarMojo
java.lang.Exception