org.apache.maven.plugin.war
Class WarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.war.AbstractWarMojo
          extended by org.apache.maven.plugin.war.WarMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class WarMojo
extends AbstractWarMojo

Build a war/webapp.

Version:
$Id: WarMojo.java 480784 2006-11-30 00:07:45Z jvanzyl $
Author:
Emmanuel Venisse

Field Summary
 
Fields inherited from class org.apache.maven.plugin.war.AbstractWarMojo
archive, archiverManager
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
WarMojo()
           
 
Method Summary
 void execute()
          Executes the WarMojo on the current project.
protected  java.lang.String getClassifier()
          Overload this to produce a test-war, for example.
protected static java.io.File getWarFile(java.io.File basedir, java.lang.String finalName, java.lang.String classifier)
           
 
Methods inherited from class org.apache.maven.plugin.war.AbstractWarMojo
buildExplodedWebapp, buildWebapp, copyResources, copyResources, createJarArchive, getClassesDirectory, getContainerConfigXML, getDependentWarExcludes, getDependentWarIncludes, getExcludes, getIncludes, getOutputFileNameMapping, getProject, getWarSourceDirectory, getWebappDirectory, getWebXml, setClassesDirectory, setContainerConfigXML, setOutputFileNameMapping, setProject, setWarSourceDirectory, setWebappDirectory, setWebXml
 
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
 

Constructor Detail

WarMojo

public WarMojo()
Method Detail

getClassifier

protected java.lang.String getClassifier()
Overload this to produce a test-war, for example.


getWarFile

protected static java.io.File getWarFile(java.io.File basedir,
                                         java.lang.String finalName,
                                         java.lang.String classifier)

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Executes the WarMojo on the current project.

Throws:
org.apache.maven.plugin.MojoExecutionException - if an error occured while building the webapp
org.apache.maven.plugin.MojoFailureException


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.