org.apache.maven.plugin.coreit
Class AbstractDependencyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
project
protected MavenProject project
- The current Maven project.
- Is defined by:
- default-value:
- ${project}
- Is readonly.
- Is required.
AbstractDependencyMojo
public AbstractDependencyMojo()
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.