@Mojo(name="start",
requiresDependencyResolution=TEST)
@Execute(phase=VALIDATE)
public class JettyStartMojo
extends JettyRunMojo
This goal is similar to the jetty:run goal, EXCEPT that it is designed to be bound to an execution inside your pom, rather than being run from the command line.
When using it, be careful to ensure that you bind it to a phase in which all necessary generated files and classes for the webapp will have been created. If you run it from the command line, then also ensure that all necessary generated files and classes for the webapp already exist.
Runs jetty directly from a maven project from a binding to an execution in your pomclassesDirectory, DEFAULT_WEBAPP_SRC, FAKE_WEBAPP, originalBaseResource, scanClassesPattern, scanTargetPatterns, scanTargets, scanTestClassesPattern, testClassesDirectory, useTestScope, warArtifacts, warPluginInfo, webAppSourceDirectory, webXmlconsoleScanner, 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 |
|---|
JettyStartMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
void |
finishConfigurationBeforeStart() |
checkPomConfiguration, configureScanner, configureWebApplication, gatherScannables, getArtifactForOverlay, getProjectReference, restartWebApp, unpackOverlay, unpackOverlaysapplyJettyXml, checkPackagingConfiguration, 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 JettyRunMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionAbstractJettyMojo.execute()public void finishConfigurationBeforeStart()
throws java.lang.Exception
finishConfigurationBeforeStart in class JettyRunMojojava.lang.ExceptionCopyright © 1995–2018 Webtide. All rights reserved.