org.apache.tomcat.maven.plugin.tomcat7.run
Class ShutdownMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
          extended by org.apache.tomcat.maven.plugin.tomcat7.run.ShutdownMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@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.

Since:
2.0
Author:
Mark Michaelis

Field Summary
protected  boolean skip
          Skip execution
protected  boolean skipErrorOnShutdown
          Ignore error when shutdown
 
Fields inherited from class org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
messagesProvider, path, settings
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ShutdownMojo()
           
 
Method Summary
 void execute()
          Shuts down all embedded tomcats which got started up to now.
 
Methods inherited from class org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
checkTomcatResponse, getPath
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

skipErrorOnShutdown

@Parameter(property="maven.tomcat.skipErrorOnShutdown",
           defaultValue="false")
protected boolean skipErrorOnShutdown
Ignore error when shutdown

Since:
2.0

skip

@Parameter(property="maven.tomcat.skipShutdown",
           defaultValue="false")
protected boolean skip
Skip execution

Since:
2.0
Constructor Detail

ShutdownMojo

public ShutdownMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Shuts down all embedded tomcats which got started up to now.

Throws:
org.apache.maven.plugin.MojoExecutionException - if shutting down one or all servers failed


Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.