@Mojo(name="run", requiresDependencyResolution=TEST, threadSafe=true) @Execute(phase=PROCESS_CLASSES) public class RunMojo extends AbstractRunMojo
aliases, artifactFactory, artifactResolver, backgroundProcessorDelay, classLoaderClass, contextFile, contextReloadable, hostName, mavenFileFilter, project, session, skip, useBodyEncodingForURI, useSeparateTomcatClassLoader
messagesProvider, path, settings
ROLE
Constructor and Description |
---|
RunMojo() |
Modifier and Type | Method and Description |
---|---|
protected Context |
createContext(Embedded container)
Gets the context to run this web application under for the specified embedded Tomcat.
|
protected WebappLoader |
createWebappLoader()
Gets the webapp loader to run this web application under.
|
protected File |
getContextFile()
Gets the Tomcat context XML file to use.
|
protected File |
getDocBase()
Gets the webapp directory to run.
|
execute, getArtifact, getPath, getProjectArtifacts, getTomcatClassLoader, isContextReloadable, isWar
checkTomcatResponse
getLog, getPluginContext, setLog, setPluginContext
protected Context createContext(Embedded container) throws IOException, org.apache.maven.plugin.MojoExecutionException
createContext
in class AbstractRunMojo
container
- the embedded Tomcat container being usedorg.apache.maven.plugin.MojoExecutionException
IOException
- if the context could not be createdprotected WebappLoader createWebappLoader() throws IOException, org.apache.maven.plugin.MojoExecutionException
createWebappLoader
in class AbstractRunMojo
org.apache.maven.plugin.MojoExecutionException
IOException
- if the webapp loader could not be createdprotected File getDocBase()
getDocBase
in class AbstractRunMojo
protected File getContextFile() throws org.apache.maven.plugin.MojoExecutionException
getContextFile
in class AbstractRunMojo
org.apache.maven.plugin.MojoExecutionException
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.