org.codehaus.cargo.maven2
Class UberWarMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.cargo.maven2.AbstractUberWarMojo
org.codehaus.cargo.maven2.UberWarMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
public class UberWarMojo
- extends AbstractUberWarMojo
- implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Build an uberwar
- Version:
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
UberWarMojo
public UberWarMojo()
getConfigDirectory
protected java.io.File getConfigDirectory()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Executes the UberWarMojo on the current project.
- Specified by:
execute
in interface org.apache.maven.plugin.Mojo
- Specified by:
execute
in class AbstractUberWarMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
- if an error occured while building the webapp
addAllTransitiveJars
protected void addAllTransitiveJars(WarArchiveMerger wam)
throws org.apache.maven.plugin.MojoExecutionException
- Add all JAR files into the WAR file, calculated transitively and resolved in
the normal 'maven' way (I.E if 2 war files contain different versions, resolve to using
only *1* version).
- Parameters:
wam
-
- Throws:
org.apache.maven.plugin.MojoExecutionException
addAllDependentJars
protected void addAllDependentJars(WarArchiveMerger wam)
throws org.apache.maven.plugin.MojoExecutionException
- Add all the JAR files specified into the merge - these will appear
in the WEB-INF/lib directory.
- Parameters:
wam
-
- Throws:
org.apache.maven.plugin.MojoExecutionException
addWar
protected void addWar(WarArchiveMerger wam,
java.lang.String artifactIdent)
throws org.apache.maven.plugin.MojoExecutionException,
java.io.IOException
- Throws:
org.apache.maven.plugin.MojoExecutionException
java.io.IOException
addAllWars
protected void addAllWars(WarArchiveMerger wam)
throws org.apache.maven.plugin.MojoExecutionException,
java.io.IOException
- Throws:
org.apache.maven.plugin.MojoExecutionException
java.io.IOException
contextualize
public void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
- Specified by:
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Throws:
org.codehaus.plexus.context.ContextException
Copyright © 2004-2011 Codehaus. All Rights Reserved.