public abstract class AbstractDependencyMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
outputAbsoluteArtifactFilename
Output absolute filename for resolved artifacts
|
protected List<org.apache.maven.project.MavenProject> |
reactorProjects
Contains the full list of projects in the reactor.
|
protected org.apache.maven.execution.MavenSession |
session
The Maven session
|
| Constructor and Description |
|---|
AbstractDependencyMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyFile(File artifact,
File destFile)
Does the actual copy of the file and logging.
|
protected abstract void |
doExecute() |
void |
execute() |
org.apache.maven.project.MavenProject |
getProject() |
protected boolean |
isSilent() |
boolean |
isSkip() |
org.apache.maven.project.ProjectBuildingRequest |
newResolveArtifactProjectBuildingRequest() |
protected org.apache.maven.project.ProjectBuildingRequest |
newResolvePluginProjectBuildingRequest() |
void |
setSilent(boolean silent) |
void |
setSkip(boolean skip) |
@Parameter(defaultValue="${reactorProjects}",
readonly=true)
protected List<org.apache.maven.project.MavenProject> reactorProjects
@Parameter(defaultValue="${session}",
readonly=true,
required=true)
protected org.apache.maven.execution.MavenSession session
@Parameter(property="outputAbsoluteArtifactFilename",
defaultValue="false")
protected boolean outputAbsoluteArtifactFilename
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected abstract void doExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException - MojoFailureExceptionprotected void copyFile(File artifact, File destFile) throws org.apache.maven.plugin.MojoExecutionException
artifact - represents the file to copy.destFile - file name of destination file.org.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.public org.apache.maven.project.ProjectBuildingRequest newResolveArtifactProjectBuildingRequest()
protected org.apache.maven.project.ProjectBuildingRequest newResolvePluginProjectBuildingRequest()
public org.apache.maven.project.MavenProject getProject()
public boolean isSkip()
skippublic void setSkip(boolean skip)
skip - skipprotected final boolean isSilent()
silentpublic void setSilent(boolean silent)
silent - silentCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.