org.apache.tomcat.maven.plugin.tomcat6
Class ShutdownMojo

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

public class ShutdownMojo
extends AbstractI18NTomcat6Mojo

Shuts down all possibly started embedded tomcat servers. This will be automatically down 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:
1.1
Author:
Mark Michaelis
Is defined by the goal name:
shutdown
Requires the dependencies in this specified scope:
runtime

Field Summary
protected  boolean skipErrorOnShutdown
          Ignore error when shutdown
 
Fields inherited from class org.apache.tomcat.maven.plugin.tomcat6.AbstractI18NTomcat6Mojo
messagesProvider, path
 
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.tomcat6.AbstractI18NTomcat6Mojo
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

protected boolean skipErrorOnShutdown
Ignore error when shutdown

Since:
2.0
Is defined by:
expression:
${maven.tomcat.skipErrorOnShutdown}
default-value:
false
Constructor Detail

ShutdownMojo

public ShutdownMojo()
Method Detail

execute

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

Throws:
MojoExecutionException - if shutting down one or all servers failed


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.