Package org.eclipse.jetty.maven.plugin
Class JettyDeployWar
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.jetty.maven.plugin.AbstractJettyMojo
-
- org.eclipse.jetty.maven.plugin.JettyRunWarMojo
-
- org.eclipse.jetty.maven.plugin.JettyDeployWar
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@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 war
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
daemon
If true, the plugin should continue and not block.-
Fields inherited from class org.eclipse.jetty.maven.plugin.AbstractJettyMojo
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 Summary
Constructors Constructor Description JettyDeployWar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
void
finishConfigurationBeforeStart()
-
Methods inherited from class org.eclipse.jetty.maven.plugin.JettyRunWarMojo
configureScanner, configureWebApplication, restartWebApp
-
Methods inherited from class org.eclipse.jetty.maven.plugin.AbstractJettyMojo
applyJettyXml, checkPackagingConfiguration, checkPomConfiguration, configureMonitor, configurePluginClasspath, findJettyWebXmlFile, getJettyXmlFiles, getSkipMessage, isConfigurationSupported, isExcluded, isPluginArtifact, isScanningEnabled, printSystemProperties, setSystemProperties, setSystemPropertiesFile, startConsoleScanner, startJetty, startScanner, stopScanner
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in classJettyRunWarMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
- See Also:
Mojo.execute()
-
finishConfigurationBeforeStart
public void finishConfigurationBeforeStart() throws java.lang.Exception
- Overrides:
finishConfigurationBeforeStart
in classJettyRunWarMojo
- Throws:
java.lang.Exception
-
-