@Mojo(name="shutdown", requiresDependencyResolution=RUNTIME, threadSafe=true) public class ShutdownMojo extends AbstractTomcat7Mojo
Shuts down all possibly started embedded Tomcat servers. This will be automatically done through a shutdown hook or you may call this Mojo to shut them down explictly.
By default the shutdown
goal is not bound to any phase. For integration tests
you might want to bind it to post-integration-test
.
Modifier and Type | Field and Description |
---|---|
protected boolean |
skip
Skip execution
|
protected boolean |
skipErrorOnShutdown
Ignore error when shutdown
|
messagesProvider, path, settings
ROLE
Constructor and Description |
---|
ShutdownMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Shuts down all embedded tomcats which got started up to now.
|
checkTomcatResponse, getPath
getLog, getPluginContext, setLog, setPluginContext
@Parameter(property="maven.tomcat.skipErrorOnShutdown", defaultValue="false") protected boolean skipErrorOnShutdown
@Parameter(property="maven.tomcat.skipShutdown", defaultValue="false") protected boolean skip
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- if shutting down one or all servers failedCopyright © 2005–2014 The Apache Software Foundation. All rights reserved.