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

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
              extended by org.apache.tomcat.maven.plugin.tomcat7.run.AbstractStandaloneWarMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
StandaloneWarMojo, StandaloneWarOnlyMojo

public abstract class AbstractStandaloneWarMojo
extends AbstractExecWarMojo

Abstract Mojo for building deployable and executable war files

Since:
2.1

Field Summary
protected  String attachArtifactClassifier
          the classifier to use for the attached/generated artifact
protected  String finalName
          Name of the generated WAR.
 
Fields inherited from class org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo
accessLogValveFormat, artifactFactory, artifactResolver, attachArtifact, attachArtifactClassifierType, buildDirectory, connectorHttpProtocol, enableNaming, extraDependencies, extraResources, local, mainClass, path, pluginArtifacts, project, projectArtifact, projectHelper, remoteRepos, serverXml, tomcatConfigurationFilesDirectory, 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
AbstractStandaloneWarMojo()
           
 
Method Summary
 void execute()
           
 
Methods inherited from class org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo
addContextXmlToWar, copyDirectoryContentIntoArchive, extractJarToArchive, resolvePluginWorkDir, toStringArray
 
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

finalName

@Parameter(property="tomcat.jar.finalName",
           defaultValue="${project.artifactId}-${project.version}-standalone.war",
           required=true)
protected String finalName
Name of the generated WAR.


attachArtifactClassifier

@Parameter(property="maven.tomcat.exec.war.attachArtifactClassifier",
           defaultValue="standalone",
           required=true)
protected String attachArtifactClassifier
the classifier to use for the attached/generated artifact

Constructor Detail

AbstractStandaloneWarMojo

public AbstractStandaloneWarMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class AbstractExecWarMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.