Class DependencySetAssemblyPhase
- java.lang.Object
-
- org.apache.maven.plugins.assembly.archive.phase.DependencySetAssemblyPhase
-
- All Implemented Interfaces:
AssemblyArchiverPhase,PhaseOrder
@Singleton @Named("dependency-sets") public class DependencySetAssemblyPhase extends Object implements AssemblyArchiverPhase, PhaseOrderHandles the top-level <dependencySets/> section of the assembly descriptor.
-
-
Constructor Summary
Constructors Constructor Description DependencySetAssemblyPhase(org.apache.maven.project.ProjectBuilder projectBuilder, DependencyResolver dependencyResolver)Injected ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Assembly assembly, org.codehaus.plexus.archiver.Archiver archiver, AssemblerConfigurationSource configSource)Handle the associated section of the assembly descriptor.intorder()
-
-
-
Constructor Detail
-
DependencySetAssemblyPhase
@Inject public DependencySetAssemblyPhase(org.apache.maven.project.ProjectBuilder projectBuilder, DependencyResolver dependencyResolver)Injected ctor.
-
-
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:
executein 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:
orderin interfacePhaseOrder
-
-