Package org.eclipse.jetty.maven.plugin
Class JettyRunWarMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.jetty.maven.plugin.AbstractJettyMojo
-
- org.eclipse.jetty.maven.plugin.JettyRunWarMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
JettyDeployWar
@Mojo(name="run-war", requiresDependencyResolution=COMPILE_PLUS_RUNTIME) @Execute(phase=PACKAGE) public class JettyRunWarMojo extends AbstractJettyMojoThis 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 file
-
-
Field Summary
-
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 JettyRunWarMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureScanner()voidconfigureWebApplication()Subclasses should invoke this to setup basic info on the webappvoidexecute()voidfinishConfigurationBeforeStart()voidrestartWebApp(boolean reconfigureScanner)-
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:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractJettyMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException- See Also:
Mojo.execute()
-
finishConfigurationBeforeStart
public void finishConfigurationBeforeStart() throws java.lang.Exception- Overrides:
finishConfigurationBeforeStartin classAbstractJettyMojo- Throws:
java.lang.Exception
-
configureWebApplication
public void configureWebApplication() throws java.lang.ExceptionDescription copied from class:AbstractJettyMojoSubclasses should invoke this to setup basic info on the webapp- Overrides:
configureWebApplicationin classAbstractJettyMojo- Throws:
java.lang.Exception- if unable to configure web application
-
configureScanner
public void configureScanner() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
configureScannerin classAbstractJettyMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
restartWebApp
public void restartWebApp(boolean reconfigureScanner) throws java.lang.Exception- Specified by:
restartWebAppin classAbstractJettyMojo- Throws:
java.lang.Exception
-
-