org.apache.cocoon.maven.deployer
Class AbstractDeployMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.war.AbstractWarMojo
          extended by org.apache.cocoon.maven.deployer.AbstractDeployMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
DeployExplodedMojo, DeployWarMojo

public abstract class AbstractDeployMojo
extends org.apache.maven.plugin.war.AbstractWarMojo

Create a Cocoon web application based on a block deployment descriptor.

Version:
$Id: AbstractDeployMojo.html 1351235 2012-06-18 08:41:39Z ilgrosso $

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
AbstractDeployMojo()
           
 
Method Summary
protected  void deployWebapp()
          Deploy a monolithic Cocoon web application.
static Map getBlockArtifactsAsMap(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log)
          Create a Map of java.io.File objects pointing to artifacts.
static void xpatch(Map libraries, File[] xpatchFiles, File basedir, org.apache.maven.plugin.logging.Log log)
           
 
Methods inherited from class org.apache.maven.plugin.war.AbstractWarMojo
buildExplodedWebapp, buildWebapp, copyResources, copyResources, createJarArchive, getClassesDirectory, getContainerConfigXML, getDependentWarExcludes, getDependentWarIncludes, getExcludes, getIncludes, getProject, getWarSourceDirectory, getWebappDirectory, getWebXml, setClassesDirectory, setContainerConfigXML, 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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Constructor Detail

AbstractDeployMojo

public AbstractDeployMojo()
Method Detail

deployWebapp

protected void deployWebapp()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
Deploy a monolithic Cocoon web application. This means it doesn't use the features that the blocks-fw offers.

Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

xpatch

public static void xpatch(Map libraries,
                          File[] xpatchFiles,
                          File basedir,
                          org.apache.maven.plugin.logging.Log log)
                   throws DeploymentException
Throws:
DeploymentException

getBlockArtifactsAsMap

public static Map getBlockArtifactsAsMap(org.apache.maven.project.MavenProject project,
                                         org.apache.maven.plugin.logging.Log log)
                                  throws org.apache.maven.plugin.MojoExecutionException
Create a Map of java.io.File objects pointing to artifacts.

Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.