org.apache.tomcat.maven.plugin.tomcat7.deploy
Class RedeployMojo

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.AbstractCatalinaMojo
              extended by org.apache.tomcat.maven.plugin.tomcat7.AbstractWarCatalinaMojo
                  extended by org.apache.tomcat.maven.plugin.tomcat7.deploy.AbstractDeployMojo
                      extended by org.apache.tomcat.maven.plugin.tomcat7.deploy.AbstractDeployWarMojo
                          extended by org.apache.tomcat.maven.plugin.tomcat7.deploy.DeployMojo
                              extended by org.apache.tomcat.maven.plugin.tomcat7.deploy.RedeployMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="redeploy",
      threadSafe=true)
@Execute(phase=PACKAGE)
public class RedeployMojo
extends DeployMojo

Redeploy a WAR in Tomcat. (Alias for the deploy goal with its update parameter set to true.)

Since:
2.1
Author:
Olivier Lamy

Field Summary
 
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
RedeployMojo()
           
 
Method Summary
protected  boolean isUpdate()
          Gets whether Tomcat should automatically undeploy webapps that already exist when deploying.
 
Methods inherited from class org.apache.tomcat.maven.plugin.tomcat7.deploy.AbstractDeployWarMojo
deployWar, getWarFile, validateWarFile
 
Methods inherited from class org.apache.tomcat.maven.plugin.tomcat7.deploy.AbstractDeployMojo
deployContext, deployWarAndContext, getContextFile, getTag, invokeManager, validateContextFile
 
Methods inherited from class org.apache.tomcat.maven.plugin.tomcat7.AbstractWarCatalinaMojo
execute, isWar
 
Methods inherited from class org.apache.tomcat.maven.plugin.tomcat7.AbstractCatalinaMojo
getDeployedURL, getManager, getPath, getURL, log
 
Methods inherited from class org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
checkTomcatResponse
 
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
 

Constructor Detail

RedeployMojo

public RedeployMojo()
Method Detail

isUpdate

protected boolean isUpdate()
Description copied from class: AbstractDeployMojo
Gets whether Tomcat should automatically undeploy webapps that already exist when deploying.

Overrides:
isUpdate in class AbstractDeployMojo
Returns:
whether Tomcat should automatically undeploy webapps that already exist when deploying


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