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 attachArtifactClassifierType
          the type 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, buildDirectory, connectorHttpProtocol, enableNaming, excludes, extraDependencies, extraResources, httpPort, local, mainClass, path, pluginArtifacts, project, projectArtifact, projectHelper, remoteRepos, serverXml, tomcatConfigurationFilesDirectory, warRunDependencies
 
Fields inherited from class org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
messagesProvider, settings
 
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, findArtifactVersion, resolvePluginWorkDir, sameDependencyWithoutVersion, toStringArray
 
Methods inherited from class org.apache.tomcat.maven.plugin.tomcat7.AbstractTomcat7Mojo
checkTomcatResponse, 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


attachArtifactClassifierType

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

Since:
2.2
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–2014 The Apache Software Foundation. All rights reserved.