Class RepositoryAssemblyPhase
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.apache.maven.plugins.assembly.archive.phase.RepositoryAssemblyPhase
-
- All Implemented Interfaces:
AssemblyArchiverPhase,PhaseOrder,org.codehaus.plexus.logging.LogEnabled
@Component(role=AssemblyArchiverPhase.class, hint="repositories") public class RepositoryAssemblyPhase extends org.codehaus.plexus.logging.AbstractLogEnabled implements AssemblyArchiverPhase, PhaseOrder
-
-
Field Summary
Fields Modifier and Type Field Description private RepositoryAssemblerrepositoryAssembler-
Fields inherited from interface org.apache.maven.plugins.assembly.archive.phase.AssemblyArchiverPhase
ROLE
-
-
Constructor Summary
Constructors Constructor Description RepositoryAssemblyPhase()RepositoryAssemblyPhase(RepositoryAssembler repositoryAssembler)
-
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()private RepositoryBuilderConfigSourcewrap(AssemblerConfigurationSource configSource)private RepositoryInfowrap(Repository repository)
-
-
-
Field Detail
-
repositoryAssembler
@Requirement private RepositoryAssembler repositoryAssembler
-
-
Constructor Detail
-
RepositoryAssemblyPhase
public RepositoryAssemblyPhase()
-
RepositoryAssemblyPhase
public RepositoryAssemblyPhase(RepositoryAssembler repositoryAssembler)
-
-
Method Detail
-
execute
public void execute(Assembly assembly, org.codehaus.plexus.archiver.Archiver archiver, AssemblerConfigurationSource configSource) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException
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.
-
wrap
private RepositoryBuilderConfigSource wrap(AssemblerConfigurationSource configSource)
-
wrap
private RepositoryInfo wrap(Repository repository)
-
order
public int order()
- Specified by:
orderin interfacePhaseOrder
-
-