Class ModuleSetAssemblyPhase
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.apache.maven.plugins.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.
-
-
Field Summary
-
Fields inherited from interface org.apache.maven.plugins.assembly.archive.phase.AssemblyArchiverPhase
ROLE
-
-
Constructor Summary
Constructors Constructor Description ModuleSetAssemblyPhase()
Create an instance.ModuleSetAssemblyPhase(org.apache.maven.project.ProjectBuilder projectBuilder, DependencyResolver dependencyResolver, org.codehaus.plexus.logging.Logger logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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<org.apache.maven.project.MavenProject>
getModuleProjects(ModuleSet moduleSet, AssemblerConfigurationSource configSource, org.codehaus.plexus.logging.Logger logger)
int
order()
-
-
-
Constructor Detail
-
ModuleSetAssemblyPhase
public ModuleSetAssemblyPhase()
Create an instance.
-
ModuleSetAssemblyPhase
public ModuleSetAssemblyPhase(org.apache.maven.project.ProjectBuilder projectBuilder, DependencyResolver dependencyResolver, org.codehaus.plexus.logging.Logger logger)
- Parameters:
projectBuilder
- The project builder.logger
- The logger.
-
-
Method Detail
-
getDependencySets
public static List<DependencySet> getDependencySets(ModuleBinaries binaries)
-
getModuleProjects
@Nonnull public static Set<org.apache.maven.project.MavenProject> getModuleProjects(ModuleSet moduleSet, AssemblerConfigurationSource configSource, org.codehaus.plexus.logging.Logger logger) throws ArchiveCreationException
- Throws:
ArchiveCreationException
-
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 interfaceAssemblyArchiverPhase
- Parameters:
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.- 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
-
order
public int order()
- Specified by:
order
in interfacePhaseOrder
-
-