org.apache.maven.plugin.war
Class WarMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.war.AbstractWarMojo
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 file.
- Version:
- $Id: WarMojo.java 1000203 2010-09-22 20:36:37Z dennisl $
- Author:
- Emmanuel Venisse
- Is defined by the goal name:
- war
- Is bound to the specified phase of the standard build lifecycle:
- package
- Requires the dependencies in this specified scope:
- runtime
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.war.AbstractWarMojo |
addOverlay, buildExplodedWebapp, buildWebapp, getArchive, getArtifactFactory, getCacheFile, getClassesDirectory, getContainerConfigXML, getCurrentProjectOverlay, getDependentWarExcludes, getDependentWarIncludes, getExcludes, getFilters, getIncludes, getJarArchiver, getNonFilteredFileExtensions, getOutputFileNameMapping, getOverlays, getProject, getWarSourceDirectory, getWarSourceExcludes, getWarSourceIncludes, getWebappDirectory, getWebResources, getWebXml, getWorkDirectory, isArchiveClasses, isUseCache, setArchiveClasses, setArtifactFactory, setCacheFile, setClassesDirectory, setContainerConfigXML, setFilters, setJarArchiver, setNonFilteredFileExtensions, setOutputFileNameMapping, setOverlays, setProject, setUseCache, setWarSourceDirectory, setWarSourceExcludes, setWarSourceIncludes, setWebappDirectory, setWebResources, setWebXml, setWorkDirectory |
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 |
WarMojo
public WarMojo()
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 occurred while building the webapp
org.apache.maven.plugin.MojoFailureException
getTargetFile
protected static File getTargetFile(File basedir,
String finalName,
String classifier,
String type)
getTargetWarFile
protected File getTargetWarFile()
getTargetClassesFile
protected File getTargetClassesFile()
getClassifier
public String getClassifier()
setClassifier
public void setClassifier(String classifier)
getPackagingExcludes
public String[] getPackagingExcludes()
setPackagingExcludes
public void setPackagingExcludes(String packagingExcludes)
getPackagingIncludes
public String[] getPackagingIncludes()
setPackagingIncludes
public void setPackagingIncludes(String packagingIncludes)
getOutputDirectory
public String getOutputDirectory()
setOutputDirectory
public void setOutputDirectory(String outputDirectory)
getWarName
public String getWarName()
setWarName
public void setWarName(String warName)
getWarArchiver
public org.codehaus.plexus.archiver.war.WarArchiver getWarArchiver()
setWarArchiver
public void setWarArchiver(org.codehaus.plexus.archiver.war.WarArchiver warArchiver)
getProjectHelper
public org.apache.maven.project.MavenProjectHelper getProjectHelper()
setProjectHelper
public void setProjectHelper(org.apache.maven.project.MavenProjectHelper projectHelper)
isPrimaryArtifact
public boolean isPrimaryArtifact()
setPrimaryArtifact
public void setPrimaryArtifact(boolean primaryArtifact)
isAttachClasses
public boolean isAttachClasses()
setAttachClasses
public void setAttachClasses(boolean attachClasses)
getClassesClassifier
public String getClassesClassifier()
setClassesClassifier
public void setClassesClassifier(String classesClassifier)
isFailOnMissingWebXml
public boolean isFailOnMissingWebXml()
setFailOnMissingWebXml
public void setFailOnMissingWebXml(boolean failOnMissingWebXml)
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.