org.apache.synapse.maven.xar
Class AbstractXarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.synapse.maven.xar.AbstractXarMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.logging.LogEnabled
Direct Known Subclasses:
XarExplodedMojo, XarMojo

public abstract class AbstractXarMojo
extends org.apache.maven.plugin.AbstractMojo
implements org.codehaus.plexus.logging.LogEnabled

Abstract base class for all the mojos in the XAR plugin.


Field Summary
protected  org.apache.maven.project.MavenProject project
          The maven project.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractXarMojo()
           
 
Method Summary
protected  void buildArchive(org.codehaus.plexus.archiver.Archiver archiver)
          Build the XAR using the provided archiver.
 void enableLogging(org.codehaus.plexus.logging.Logger logger)
           
 
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
 

Field Detail

project

protected org.apache.maven.project.MavenProject project
The maven project.

Constructor Detail

AbstractXarMojo

public AbstractXarMojo()
Method Detail

enableLogging

public void enableLogging(org.codehaus.plexus.logging.Logger logger)
Specified by:
enableLogging in interface org.codehaus.plexus.logging.LogEnabled

buildArchive

protected void buildArchive(org.codehaus.plexus.archiver.Archiver archiver)
                     throws org.codehaus.plexus.archiver.ArchiverException,
                            org.apache.maven.plugin.MojoExecutionException
Build the XAR using the provided archiver.

Throws:
org.apache.maven.plugin.MojoExecutionException
org.codehaus.plexus.archiver.ArchiverException


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.