org.apache.maven.plugin.assembly

Class AbstractUnpackingMojo

public abstract class AbstractUnpackingMojo extends AbstractMojo

Base routines for assembly and unpack goals.

Version: $Id: AbstractUnpackingMojo.java 387485 2006-03-21 10:50:21Z epunzalan $

Field Summary
protected ArchiverManagerarchiverManager
To look up Archiver/UnArchiver implementations
protected ArtifactResolverartifactResolver
protected Stringclassifier
protected static String[]EMPTY_STRING_ARRAY
protected StringfinalName
The filename of the assembled distribution file.
protected ArtifactRepositorylocalRepository
protected FileoutputDirectory
The output directory of the assembled distribution file.
protected MavenProjectproject
The Maven Project.
protected booleanprojectModulesOnly
protected ListreactorProjects
Contains the full list of projects in the reactor.
protected FileworkDirectory
Directory to unpack JARs into if needed
Method Summary
StringgetClassifier()
protected SetgetDependencies()
Retrieves all artifact dependencies within the reactor
protected abstract MavenProjectgetExecutedProject()
protected SetgetModules()
protected voidunpack(File file, File location)
Unpacks the archive file.

Field Detail

archiverManager

protected ArchiverManager archiverManager
To look up Archiver/UnArchiver implementations

UNKNOWN: expression="${component.org.codehaus.plexus.archiver.manager.ArchiverManager}"

artifactResolver

protected ArtifactResolver artifactResolver

UNKNOWN:

classifier

protected String classifier

Deprecated: Please use the Assembly's id for classifier instead

UNKNOWN: expression="${classifier}"

EMPTY_STRING_ARRAY

protected static final String[] EMPTY_STRING_ARRAY

finalName

protected String finalName
The filename of the assembled distribution file.

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

localRepository

protected ArtifactRepository localRepository

UNKNOWN: expression="${localRepository}"

outputDirectory

protected File outputDirectory
The output directory of the assembled distribution file.

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

project

protected MavenProject project
The Maven Project.

UNKNOWN: expression="${project}"

projectModulesOnly

protected boolean projectModulesOnly

UNKNOWN: expression="${projectModulesOnly}" default-value="false"

reactorProjects

protected List reactorProjects
Contains the full list of projects in the reactor.

UNKNOWN: expression="${reactorProjects}"

workDirectory

protected File workDirectory
Directory to unpack JARs into if needed

UNKNOWN: expression="${project.build.directory}/assembly/work"

Method Detail

getClassifier

public String getClassifier()

getDependencies

protected Set getDependencies()
Retrieves all artifact dependencies within the reactor

Returns: A HashSet of artifacts

getExecutedProject

protected abstract MavenProject getExecutedProject()

getModules

protected Set getModules()

unpack

protected void unpack(File file, File location)
Unpacks the archive file.

Parameters: file File to be unpacked. location Location where to put the unpacked files.

Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.