org.codehaus.mojo.dependency
Class AbstractFromDependenciesMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.dependency.AbstractFromDependenciesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
CopyDependenciesMojo, UnpackDependenciesMojo

public abstract class AbstractFromDependenciesMojo
extends org.apache.maven.plugin.AbstractMojo

Abstract Parent class used by mojos that get Artifact information from the project dependencies.

Author:
brianf

Field Summary
protected  org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
          To look up Archiver/UnArchiver implementations
protected  java.io.File outputDirectory
          Output location used for mojo.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractFromDependenciesMojo()
           
 
Method Summary
protected  java.util.Set getDependencies()
          Retrieves all artifact dependencies within the reactor
protected  java.util.Map getMappedReactorArtifacts()
          Creates a Map of artifacts within the reactor using the groupId:artifactId:classifer:version as key
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

outputDirectory

protected java.io.File outputDirectory
Output location used for mojo.


archiverManager

protected org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager
To look up Archiver/UnArchiver implementations

Constructor Detail

AbstractFromDependenciesMojo

public AbstractFromDependenciesMojo()
Method Detail

getMappedReactorArtifacts

protected java.util.Map getMappedReactorArtifacts()
Creates a Map of artifacts within the reactor using the groupId:artifactId:classifer:version as key

Returns:
A HashMap of all artifacts available in the reactor

getDependencies

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

Returns:
A HashSet of artifacts


Copyright © {inceptionYear}-2008 null. All Rights Reserved.