org.apache.maven.plugin.assembly.archive.phase
Class DependencySetAssemblyPhase

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.plugin.assembly.archive.phase.DependencySetAssemblyPhase
All Implemented Interfaces:
AssemblyArchiverPhase, org.codehaus.plexus.logging.LogEnabled

@Component(role=AssemblyArchiverPhase.class,
           hint="dependency-sets")
public class DependencySetAssemblyPhase
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements AssemblyArchiverPhase

Handles the top-level <dependencySets/> section of the assembly descriptor.

Version:
$Id: DependencySetAssemblyPhase.java 1632861 2014-10-18 23:23:32Z khmarbaise $

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase
ROLE
 
Constructor Summary
DependencySetAssemblyPhase()
          Default constructor.
DependencySetAssemblyPhase(org.apache.maven.project.MavenProjectBuilder projectBuilder, org.codehaus.plexus.logging.Logger logger)
           
 
Method Summary
 void execute(ResolvedAssembly assembly, org.codehaus.plexus.archiver.Archiver archiver, AssemblerConfigurationSource configSource)
          Handle the associated section of the assembly descriptor.
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencySetAssemblyPhase

public DependencySetAssemblyPhase()
Default constructor.


DependencySetAssemblyPhase

public DependencySetAssemblyPhase(org.apache.maven.project.MavenProjectBuilder projectBuilder,
                                  org.codehaus.plexus.logging.Logger logger)
Parameters:
projectBuilder - The Maven Project Builder.
logger - The Logger.
Method Detail

execute

public void execute(ResolvedAssembly assembly,
                    org.codehaus.plexus.archiver.Archiver archiver,
                    AssemblerConfigurationSource configSource)
             throws ArchiveCreationException,
                    AssemblyFormattingException,
                    InvalidAssemblerConfigurationException
Handle the associated section of the assembly descriptor.

Specified by:
execute in interface AssemblyArchiverPhase
Parameters:
assembly - The assembly descriptor to use
archiver - The archiver used to create the assembly archive, to which files/directories/artifacts are added
configSource - The configuration for this assembly build, normally derived from the plugin that launched the assembly process.
Throws:
ArchiveCreationException - in case of an archive creation error.
AssemblyFormattingException - in case of a assembly formatting exception.
InvalidAssemblerConfigurationException - in case of an invalid assembler configuration.


Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.