org.apache.tomcat.maven.plugin.tomcat7.run
Class RunMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo
org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="run",
requiresDependencyResolution=TEST,
threadSafe=true)
@Execute(phase=PROCESS_CLASSES)
public class RunMojo
- extends AbstractRunMojo
Runs the current project as a dynamic web application using an embedded Tomcat server.
- Since:
- 2.0
- Author:
- Olivier Lamy
Fields inherited from class org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo |
aliases, backgroundProcessorDelay, classLoaderClass, clientAuth, contextFile, contextReloadable, factory, hostName, jarScanAllDirectories, mavenFileFilter, project, propertiesPortFilePath, resolver, session, skip, trustManagerClassName, trustMaxCertLength, truststoreAlgorithm, truststoreFile, truststorePass, truststoreProvider, truststoreType, useBodyEncodingForURI, useSeparateTomcatClassLoader |
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 |
RunMojo
public RunMojo()
getDocBase
protected File getDocBase()
throws IOException
- Gets the webapp directory to run.
- Specified by:
getDocBase
in class AbstractRunMojo
- Returns:
- the webapp directory
- Throws:
IOException
getContextFile
protected File getContextFile()
throws org.apache.maven.plugin.MojoExecutionException
- Gets the Tomcat context XML file to use.
- Specified by:
getContextFile
in class AbstractRunMojo
- Returns:
- the context XML file
- Throws:
org.apache.maven.plugin.MojoExecutionException
createWebappLoader
protected WebappLoader createWebappLoader()
throws IOException,
org.apache.maven.plugin.MojoExecutionException
- Gets the webapp loader to run this web application under.
- Overrides:
createWebappLoader
in class AbstractRunMojo
- Returns:
- the webapp loader to use
- Throws:
org.apache.maven.plugin.MojoExecutionException
IOException
- if the webapp loader could not be created
Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.