org.apache.maven.plugin.coreit
Class AbstractDependencyMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.coreit.AbstractDependencyMojo
All Implemented Interfaces:
ContextEnabled, Mojo
Direct Known Subclasses:
AggregateTestMojo, CompileMojo, RuntimeMojo, TestMojo

public abstract class AbstractDependencyMojo
extends AbstractMojo

Provides common services for all mojos of this plugin.

Version:
$Id: AbstractDependencyMojo.java 809429 2009-08-30 22:24:31Z bentmann $
Author:
Benjamin Bentmann

Field Summary
protected  MavenProject project
          The current Maven project.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractDependencyMojo()
           
 
Method Summary
protected  void writeArtifacts(String pathname, Collection artifacts)
          Writes the specified artifacts to the given output file.
 
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

project

protected MavenProject project
The current Maven project.

Is defined by:
default-value:
${project}
Is readonly.
Is required.
Constructor Detail

AbstractDependencyMojo

public AbstractDependencyMojo()
Method Detail

writeArtifacts

protected void writeArtifacts(String pathname,
                              Collection artifacts)
                       throws MojoExecutionException
Writes the specified artifacts to the given output file.

Parameters:
pathname - The path to the output file, relative to the project base directory, may be null or empty if the output file should not be written.
artifacts - The list of artifacts to write to the file, may be null.
Throws:
MojoExecutionException - If the output file could not be written.


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.