org.apache.tomcat.maven.plugin.tomcat7.run
Class AbstractExecWarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
          extended by 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

Field Summary
protected  org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
           
protected  String path
          The webapp context path to use for the web application being run.
protected  org.apache.maven.project.MavenProject project
          The maven project.
protected  List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepos
          List of Remote Repositories used by the resolver
protected  List<WarRunDependency> warRunDependencies
           
 
Fields inherited from class org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
messagesProvider
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractExecWarMojo()
           
 
Method Summary
 void execute()
           
protected  File resolvePluginWorkDir()
          Resolves the plugin work dir as a sub directory of buildDirectory, creating it if it does not exist.
 
Methods inherited from class org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
getPath
 
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
 

Field Detail

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

Constructor Detail

AbstractExecWarMojo

public AbstractExecWarMojo()
Method Detail

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.