Class AbstractDependencyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.dependency.AbstractDependencyMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractDependencyFilterMojo
,AbstractFromConfigurationMojo
,ListRepositoriesMojo
public abstract class AbstractDependencyMojo
extends org.apache.maven.plugin.AbstractMojo
- Author:
- Brian Fox
-
Field Summary
Modifier and TypeFieldDescriptionprotected List
<org.apache.maven.project.MavenProject> Contains the full list of projects in the reactor.protected org.apache.maven.execution.MavenSession
The Maven sessionFields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
final void
execute()
org.apache.maven.project.MavenProject
protected final boolean
isSilent()
boolean
isSkip()
org.apache.maven.project.ProjectBuildingRequest
protected org.apache.maven.project.ProjectBuildingRequest
void
setSilent
(boolean silent) void
setSkip
(boolean skip) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
reactorProjects
@Parameter(defaultValue="${reactorProjects}", readonly=true) protected List<org.apache.maven.project.MavenProject> reactorProjectsContains the full list of projects in the reactor. -
session
@Component protected org.apache.maven.execution.MavenSession sessionThe Maven session
-
-
Constructor Details
-
AbstractDependencyMojo
public AbstractDependencyMojo()
-
-
Method Details
-
execute
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
doExecute
protected abstract void doExecute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
-MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-MojoFailureException
-
newResolveArtifactProjectBuildingRequest
public org.apache.maven.project.ProjectBuildingRequest newResolveArtifactProjectBuildingRequest()- Returns:
- Returns a new ProjectBuildingRequest populated from the current session and the current project remote repositories, used to resolve artifacts.
-
newResolvePluginProjectBuildingRequest
protected org.apache.maven.project.ProjectBuildingRequest newResolvePluginProjectBuildingRequest()- Returns:
- Returns a new ProjectBuildingRequest populated from the current session and the current project remote repositories, used to resolve plugins.
-
getProject
public org.apache.maven.project.MavenProject getProject()- Returns:
- Returns the project.
-
isSkip
public boolean isSkip()- Returns:
skip
-
setSkip
public void setSkip(boolean skip) - Parameters:
skip
-skip
-
isSilent
protected final boolean isSilent()- Returns:
silent
-
setSilent
public void setSilent(boolean silent) - Parameters:
silent
-silent
-