org.apache.tomcat.maven.plugin.tomcat7
Class AbstractTomcat7Mojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- AbstractCatalinaMojo, AbstractExecWarMojo, AbstractRunMojo, ShutdownMojo
public abstract class AbstractTomcat7Mojo
- extends org.apache.maven.plugin.AbstractMojo
- Since:
- 2.0
- Author:
- Olivier Lamy
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
Methods inherited from interface org.apache.maven.plugin.Mojo |
execute |
settings
@Component
protected org.apache.maven.settings.Settings settings
messagesProvider
@Component
protected MessagesProvider messagesProvider
path
@Parameter(defaultValue="/${project.artifactId}",
property="maven.tomcat.path",
required=true)
protected String path
- The webapp context path to use for the web application being run. This must always start with a forward-slash
('/').
AbstractTomcat7Mojo
public AbstractTomcat7Mojo()
getPath
protected String getPath()
checkTomcatResponse
protected void checkTomcatResponse(TomcatManagerResponse tomcatResponse)
throws org.apache.maven.plugin.MojoExecutionException
- Check response of Tomcat to know if ok or not.
- Parameters:
tomcatResponse
- response of tomcat return by TomcatManager class
- Throws:
org.apache.maven.plugin.MojoExecutionException
- if HTTP status code greater than 400 (included)
Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.