org.codehaus.cargo.maven2
Class UberWarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.cargo.maven2.AbstractUberWarMojo
          extended by 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:

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
UberWarMojo()
           
 
Method Summary
protected  void addAllDependentJars(WarArchiveMerger wam)
          Add all the JAR files specified into the merge - these will appear in the WEB-INF/lib directory.
protected  void addAllTransitiveJars(WarArchiveMerger wam)
          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).
protected  void addAllWars(WarArchiveMerger wam)
           
protected  void addWar(WarArchiveMerger wam, String artifactIdent)
           
 void contextualize(org.codehaus.plexus.context.Context context)
           
 void execute()
          Executes the UberWarMojo on the current project.
protected  File getConfigDirectory()
           
 
Methods inherited from class org.codehaus.cargo.maven2.AbstractUberWarMojo
getProject, setProject
 
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

UberWarMojo

public UberWarMojo()
Method Detail

getConfigDirectory

protected 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,
                      String artifactIdent)
               throws org.apache.maven.plugin.MojoExecutionException,
                      IOException
Throws:
org.apache.maven.plugin.MojoExecutionException
IOException

addAllWars

protected void addAllWars(WarArchiveMerger wam)
                   throws org.apache.maven.plugin.MojoExecutionException,
                          IOException
Throws:
org.apache.maven.plugin.MojoExecutionException
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-2012 Codehaus. All Rights Reserved.