@Component(role=AssemblyArchiverPhase.class, hint="module-sets") public class ModuleSetAssemblyPhase extends org.codehaus.plexus.logging.AbstractLogEnabled implements AssemblyArchiverPhase, PhaseOrder
ROLE
Constructor and Description |
---|
ModuleSetAssemblyPhase()
Create an instance.
|
ModuleSetAssemblyPhase(MavenProjectBuilder projectBuilder,
DependencyResolver dependencyResolver,
org.codehaus.plexus.logging.Logger logger) |
Modifier and Type | Method and Description |
---|---|
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() |
public ModuleSetAssemblyPhase()
public ModuleSetAssemblyPhase(MavenProjectBuilder projectBuilder, DependencyResolver dependencyResolver, org.codehaus.plexus.logging.Logger logger)
projectBuilder
- The project builder.logger
- The logger.public void execute(Assembly assembly, org.codehaus.plexus.archiver.Archiver archiver, AssemblerConfigurationSource configSource) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException, DependencyResolutionException
execute
in interface AssemblyArchiverPhase
assembly
- The assembly descriptor to usearchiver
- The archiver used to create the assembly archive, to which files/directories/artifacts are
addedconfigSource
- The configuration for this assembly build, normally derived from the plugin that launched
the assembly process.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
public static List<DependencySet> getDependencySets(ModuleBinaries binaries)
@Nonnull public static Set<MavenProject> getModuleProjects(ModuleSet moduleSet, AssemblerConfigurationSource configSource, org.codehaus.plexus.logging.Logger logger) throws ArchiveCreationException
ArchiveCreationException
public int order()
order
in interface PhaseOrder
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.