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

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

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

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

Version:
$Id: ModuleSetAssemblyPhase.java 1674674 2015-04-19 19:14:00Z krosenvold $

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase
ROLE
 
Constructor Summary
ModuleSetAssemblyPhase()
          Create an instance.
ModuleSetAssemblyPhase(MavenProjectBuilder projectBuilder, DependencyResolver dependencyResolver, org.codehaus.plexus.logging.Logger logger)
           
 
Method Summary
 void execute(Assembly assembly, org.codehaus.plexus.archiver.Archiver archiver, AssemblerConfigurationSource configSource)
          Handle the associated section of the assembly descriptor.
static List<DependencySet> getDependencySets(ModuleBinaries binaries)
           
static Set<MavenProject> getModuleProjects(ModuleSet moduleSet, AssemblerConfigurationSource configSource, org.codehaus.plexus.logging.Logger logger)
           
 int order()
           
 
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

ModuleSetAssemblyPhase

public ModuleSetAssemblyPhase()
Create an instance.


ModuleSetAssemblyPhase

public ModuleSetAssemblyPhase(MavenProjectBuilder projectBuilder,
                              DependencyResolver dependencyResolver,
                              org.codehaus.plexus.logging.Logger logger)
Parameters:
projectBuilder - The project builder.
logger - The logger.
Method Detail

execute

public void execute(Assembly assembly,
                    org.codehaus.plexus.archiver.Archiver archiver,
                    AssemblerConfigurationSource configSource)
             throws ArchiveCreationException,
                    AssemblyFormattingException,
                    InvalidAssemblerConfigurationException,
                    DependencyResolutionException
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.
DependencyResolutionException

getDependencySets

public static List<DependencySet> getDependencySets(ModuleBinaries binaries)

getModuleProjects

@Nonnull
public static Set<MavenProject> getModuleProjects(ModuleSet moduleSet,
                                                          AssemblerConfigurationSource configSource,
                                                          org.codehaus.plexus.logging.Logger logger)
                                           throws ArchiveCreationException
Throws:
ArchiveCreationException

order

public int order()
Specified by:
order in interface PhaseOrder


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