org.apache.maven.plugin.assembly

Class AbstractAssemblyMojo

public abstract class AbstractAssemblyMojo extends AbstractUnpackingMojo

Version: $Id: AbstractAssemblyMojo.java 392475 2006-04-08 02:46:26Z jvanzyl $

Author: Brett Porter Vincent Siveton

Field Summary
protected booleanappendAssemblyId
Set to false to exclude the assembly id from the assembly final name.
protected Filedescriptor
Assembly XML Descriptor file.
protected StringdescriptorId
Predefined Assembly Descriptor Id's.
protected Listfilters
Method Summary
protected FilecreateArchive(Archiver archiver, Assembly assembly, String filename)
voidexecute()
Create the binary distribution.
protected StringgetDistributionName(Assembly assembly)
Get the full name of the distribution artifact
protected voidprocessDependencySets(Archiver archiver, List dependencySets, boolean includeBaseDirectory)
Processes Dependency Sets
protected voidprocessFileList(Archiver archiver, List fileList, boolean includeBaseDirecetory)
Copy files to the distribution with option to change destination name
protected voidprocessFileSets(Archiver archiver, List fileSets, boolean includeBaseDirecetory)
Process Files that will be included in the distribution.
protected ListreadAssemblies()

Field Detail

appendAssemblyId

protected boolean appendAssemblyId
Set to false to exclude the assembly id from the assembly final name.

UNKNOWN: expression="${appendAssemblyId}" default-value="true"

descriptor

protected File descriptor

Deprecated: Please use descriptors instead

Assembly XML Descriptor file. This must be the path to your customized descriptor file.

UNKNOWN: expression="${descriptor}"

descriptorId

protected String descriptorId

Deprecated: Please use descriptorRefs instead

Predefined Assembly Descriptor Id's. You can select bin, jar-with-dependencies, or src.

UNKNOWN: expression="${descriptorId}"

filters

protected List filters

UNKNOWN: expression="${project.build.filters}"

Method Detail

createArchive

protected File createArchive(Archiver archiver, Assembly assembly, String filename)

execute

public void execute()
Create the binary distribution.

Throws: org.apache.maven.plugin.MojoExecutionException

getDistributionName

protected String getDistributionName(Assembly assembly)
Get the full name of the distribution artifact

Parameters: assembly

Returns: the distribution name

processDependencySets

protected void processDependencySets(Archiver archiver, List dependencySets, boolean includeBaseDirectory)
Processes Dependency Sets

Parameters: archiver dependencySets includeBaseDirectory

processFileList

protected void processFileList(Archiver archiver, List fileList, boolean includeBaseDirecetory)
Copy files to the distribution with option to change destination name

Parameters: archiver fileList

Throws: org.codehaus.plexus.archiver.ArchiverException

processFileSets

protected void processFileSets(Archiver archiver, List fileSets, boolean includeBaseDirecetory)
Process Files that will be included in the distribution.

Parameters: archiver fileSets includeBaseDirecetory

Throws: org.codehaus.plexus.archiver.ArchiverException

readAssemblies

protected List readAssemblies()
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.