Class JettyStopMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.eclipse.jetty.ee10.maven.plugin.AbstractWebAppMojo
org.eclipse.jetty.ee10.maven.plugin.JettyStopMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
This goal stops a running instance of jetty.
The stopPort and stopKey parameters can be used to
configure which jetty to stop.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.ee10.maven.plugin.AbstractWebAppMojo
AbstractWebAppMojo.DeploymentMode -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intMax time in seconds that the plugin will wait for confirmation that jetty has stopped.Fields inherited from class org.eclipse.jetty.ee10.maven.plugin.AbstractWebAppMojo
contextHandlers, contextXml, deployMode, env, excludedGoals, execution, FAKE_WEBAPP, forkWebXml, httpConnector, JETTY_HOME_ARTIFACTID, JETTY_HOME_GROUPID, jettyBase, jettyHome, jettyHomeZip, jettyOptions, jettyProperties, jettyXmls, jvmArgs, loginServices, mavenProjectHelper, maxChildStartCheckMs, maxChildStartChecks, mergedSystemProperties, modules, originalBaseResource, plugin, pluginArtifacts, project, projectArtifacts, providedJars, reactorProjects, requestLog, scanTargetPatterns, server, skip, stopKey, stopPort, supportedPackagings, systemProperties, systemPropertiesFile, target, useProvidedScope, useTestScope, warArtifacts, webAppFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jetty.ee10.maven.plugin.AbstractWebAppMojo
augmentPluginClasspath, configureScanTargetPatterns, configureSystemProperties, configureWebApp, findJettyWebXmlFile, getContainerClassPath, getJettyOutputFile, getProjectName, getProvidedJars, isExcludedGoal, isPackagingSupported, isPluginArtifact, mergeSystemProperties, newJettyEmbedder, newJettyForker, newJettyHomeForker, startJetty, verifyPomConfigurationMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
stopWait
@Parameter protected int stopWaitMax time in seconds that the plugin will wait for confirmation that jetty has stopped.
-
-
Constructor Details
-
JettyStopMojo
public JettyStopMojo()
-
-
Method Details
-
startJettyEmbedded
protected void startJettyEmbedded() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
startJettyEmbeddedin classAbstractWebAppMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
startJettyForked
protected void startJettyForked() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
startJettyForkedin classAbstractWebAppMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
startJettyHome
protected void startJettyHome() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
startJettyHomein classAbstractWebAppMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
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 classAbstractWebAppMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-