Class ModuleSetAssemblyPhase
java.lang.Object
org.apache.maven.plugins.assembly.archive.phase.ModuleSetAssemblyPhase
- All Implemented Interfaces:
- AssemblyArchiverPhase,- PhaseOrder
@Singleton
@Named("module-sets")
public class ModuleSetAssemblyPhase
extends Object
implements AssemblyArchiverPhase, PhaseOrder
Handles the <moduleSets/> top-level section of the assembly descriptor.
- 
Constructor SummaryConstructorsConstructorDescriptionModuleSetAssemblyPhase(org.apache.maven.project.ProjectBuilder projectBuilder, DependencyResolver dependencyResolver) Injected ctor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecute(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<org.apache.maven.project.MavenProject> getModuleProjects(ModuleSet moduleSet, AssemblerConfigurationSource configSource, org.slf4j.Logger logger) intorder()
- 
Constructor Details- 
ModuleSetAssemblyPhase@Inject public ModuleSetAssemblyPhase(org.apache.maven.project.ProjectBuilder projectBuilder, DependencyResolver dependencyResolver) Injected ctor.
 
- 
- 
Method Details- 
getDependencySets
- 
getModuleProjectspublic static Set<org.apache.maven.project.MavenProject> getModuleProjects(ModuleSet moduleSet, AssemblerConfigurationSource configSource, org.slf4j.Logger logger) throws ArchiveCreationException - Throws:
- ArchiveCreationException
 
- 
executepublic 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:
- executein 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
 
- 
orderpublic int order()- Specified by:
- orderin interface- PhaseOrder
 
 
-