public abstract class AbstractDeployMojo extends AbstractWarCatalinaMojo
messagesProvider, path, settingsROLE| Constructor and Description |
|---|
AbstractDeployMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deployContext()
Deploys the context XML file to Tomcat.
|
protected void |
deployWar()
Deploys the WAR to Tomcat.
|
protected void |
deployWarAndContext()
Deploys the WAR and context XML file to Tomcat.
|
protected File |
getContextFile()
Gets the Tomcat context XML file.
|
protected String |
getTag()
Gets the Tomcat webapp tag name to use.
|
protected abstract File |
getWarFile()
Gets the Tomcat WAR file.
|
void |
invokeManager()
Invokes Tomcat manager when this Mojo is executed.
|
protected boolean |
isUpdate()
Gets whether Tomcat should automatically undeploy webapps that already exist when deploying.
|
protected void |
validateContextFile()
Ensures that the Tomcat context XML file exists and is indeed a file.
|
protected abstract void |
validateWarFile()
Ensures that the Tomcat WAR file exists and is the correct type for the deployment mode.
|
execute, isWargetDeployedURL, getManager, getPath, getURL, logcheckTomcatResponsegetLog, getPluginContext, setLog, setPluginContextpublic void invokeManager()
throws org.apache.maven.plugin.MojoExecutionException,
TomcatManagerException,
IOException
invokeManager in class AbstractCatalinaMojoorg.apache.maven.plugin.MojoExecutionException - if there was a problem executing this goalTomcatManagerException - if the Tomcat manager request failsIOException - if an i/o error occursprotected abstract File getWarFile()
protected abstract void validateWarFile()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if the WAR file does not exist or is not the correct type for the deployment modeprotected File getContextFile()
protected void validateContextFile()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if the context file does not exist or is not a fileprotected boolean isUpdate()
protected String getTag()
protected void deployWar()
throws org.apache.maven.plugin.MojoExecutionException,
TomcatManagerException,
IOException
org.apache.maven.plugin.MojoExecutionException - if there was a problem locating the WARTomcatManagerException - if the Tomcat manager request failsIOException - if an i/o error occursprotected void deployContext()
throws org.apache.maven.plugin.MojoExecutionException,
TomcatManagerException,
IOException
org.apache.maven.plugin.MojoExecutionException - if there was a problem locating the context XML fileTomcatManagerException - if the Tomcat manager request failsIOException - if an i/o error occursprotected void deployWarAndContext()
throws org.apache.maven.plugin.MojoExecutionException,
TomcatManagerException,
IOException
org.apache.maven.plugin.MojoExecutionException - if there was a problem locating either the WAR or the context XML fileTomcatManagerException - if the Tomcat manager request failsIOException - if an i/o error occursCopyright © 2005–2014 The Apache Software Foundation. All rights reserved.