org.apache.maven.plugin.assembly
Class AssemblyMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.assembly.AbstractUnpackingMojo
          extended by org.apache.maven.plugin.assembly.AssemblyMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
DirectoryMojo

public class AssemblyMojo
extends AbstractUnpackingMojo

Assemble an application bundle or distribution from an assembly descriptor.

Version:
$Id: AssemblyMojo.java 370695 2006-01-20 02:11:11Z carlos $
Author:
Brett Porter, Vincent Siveton

Field Summary
protected  java.io.File descriptor
          Deprecated. Please use descriptors instead
protected  java.lang.String descriptorId
          Deprecated. Please use descriptorRefs instead
 
Fields inherited from class org.apache.maven.plugin.assembly.AbstractUnpackingMojo
archiverManager, dependencies, EMPTY_STRING_ARRAY, finalName, outputDirectory, workDirectory
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AssemblyMojo()
           
 
Method Summary
protected  java.io.File createArchive(org.codehaus.plexus.archiver.Archiver archiver, Assembly assembly, java.lang.String filename)
           
 void execute()
          Create the binary distribution.
protected  void processDependencySets(org.codehaus.plexus.archiver.Archiver archiver, java.util.List dependencySets, boolean includeBaseDirectory)
          Processes Dependency Sets
protected  void processFileSets(org.codehaus.plexus.archiver.Archiver archiver, java.util.List fileSets, boolean includeBaseDirecetory)
          Process Files that will be included in the distribution.
protected  java.util.List readAssemblies()
           
 
Methods inherited from class org.apache.maven.plugin.assembly.AbstractUnpackingMojo
unpack
 
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
 

Field Detail

descriptorId

protected java.lang.String descriptorId
Deprecated. Please use descriptorRefs instead
Predefined Assembly Descriptor Id's. You can select bin, jar-with-dependencies, or src.


descriptor

protected java.io.File descriptor
Deprecated. Please use descriptors instead
Assembly XML Descriptor file. This must be the path to your customized descriptor file.

Constructor Detail

AssemblyMojo

public AssemblyMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Create the binary distribution.

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

createArchive

protected java.io.File createArchive(org.codehaus.plexus.archiver.Archiver archiver,
                                     Assembly assembly,
                                     java.lang.String filename)
                              throws org.codehaus.plexus.archiver.ArchiverException,
                                     java.io.IOException,
                                     org.apache.maven.plugin.MojoExecutionException,
                                     org.apache.maven.plugin.MojoFailureException
Throws:
org.codehaus.plexus.archiver.ArchiverException
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

readAssemblies

protected java.util.List readAssemblies()
                                 throws org.apache.maven.plugin.MojoFailureException,
                                        org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException

processDependencySets

protected void processDependencySets(org.codehaus.plexus.archiver.Archiver archiver,
                                     java.util.List dependencySets,
                                     boolean includeBaseDirectory)
                              throws org.codehaus.plexus.archiver.ArchiverException,
                                     java.io.IOException,
                                     org.apache.maven.plugin.MojoExecutionException,
                                     org.apache.maven.plugin.MojoFailureException
Processes Dependency Sets

Parameters:
archiver -
dependencySets -
includeBaseDirectory -
Throws:
org.codehaus.plexus.archiver.ArchiverException
java.io.IOException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

processFileSets

protected void processFileSets(org.codehaus.plexus.archiver.Archiver archiver,
                               java.util.List fileSets,
                               boolean includeBaseDirecetory)
                        throws org.codehaus.plexus.archiver.ArchiverException
Process Files that will be included in the distribution.

Parameters:
archiver -
fileSets -
includeBaseDirecetory -
Throws:
org.codehaus.plexus.archiver.ArchiverException


Copyright {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.