org.apache.tomcat.maven.plugin.tomcat7.run
Class AbstractExecWarMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- ExecWarMojo, ExecWarOnlyMojo
public abstract class AbstractExecWarMojo
- extends AbstractTomcat7Mojo
- 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 |
project
@Parameter(defaultValue="${project}",
required=true,
readonly=true)
protected org.apache.maven.project.MavenProject project
- The maven project.
path
@Parameter(property="maven.tomcat.path",
defaultValue="${project.artifactId}",
required=true)
protected String path
- The webapp context path to use for the web application being run.
The name to store webapp in exec jar. Do not use /
warRunDependencies
@Parameter
protected List<WarRunDependency> warRunDependencies
artifactResolver
@Component
protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
remoteRepos
@Parameter(defaultValue="${project.remoteArtifactRepositories}",
required=true,
readonly=true)
protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepos
- List of Remote Repositories used by the resolver
AbstractExecWarMojo
public AbstractExecWarMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
resolvePluginWorkDir
protected File resolvePluginWorkDir()
throws org.apache.maven.plugin.MojoExecutionException
- Resolves the plugin work dir as a sub directory of
buildDirectory
, creating it if it does not exist.
- Returns:
- File representing the resolved plugin work dir
- Throws:
org.apache.maven.plugin.MojoExecutionException
- if the plugin work dir cannot be created
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.