public abstract class AbstractValidationMojo
extends org.apache.maven.plugin.AbstractMojo
Constructor and Description |
---|
AbstractValidationMojo() |
Modifier and Type | Method and Description |
---|---|
protected Set<org.apache.maven.artifact.Artifact> |
getArtifacts(boolean recursive)
This method retrieves all artifacts of the current Maven module.
|
protected org.apache.maven.project.MavenProject |
getMavenProject()
This method returns the current
MavenProject . |
protected org.apache.maven.project.MavenProjectBuilder |
getProjectBuilder()
This method returns a
MavenProjectBuilder . |
protected DependencyTree |
loadArtifacts(boolean recursive,
boolean skipTestScope,
boolean skipProvidedScope,
boolean skipOptionals)
This method retrieves all artifacts of the current Maven module.
|
getLog, getPluginContext, setLog, setPluginContext
protected final org.apache.maven.project.MavenProject getMavenProject()
MavenProject
.MavenProject
object is returned referencing the current
Maven project.protected final org.apache.maven.project.MavenProjectBuilder getProjectBuilder()
MavenProjectBuilder
.MavenProjectBuilder
is returned.protected Set<org.apache.maven.artifact.Artifact> getArtifacts(boolean recursive)
MavenProject.getDependencyArtifacts()
and
MavenProject.getArtifacts()
which are lazily filled with the
artifacts.Set
of Artifact
is returned containing the
artifacts found.protected DependencyTree loadArtifacts(boolean recursive, boolean skipTestScope, boolean skipProvidedScope, boolean skipOptionals) throws org.apache.maven.plugin.MojoExecutionException
recursive
- is to be set to true
is the dependencies shall be
loaded recursively. false
is set if wanted
otherwise.skipTestScope
- is to be set to true
is artifacts in test scope
are to be skipped and neglected. false
is set if
wanted otherwise.skipProvidedScope
- is to be set to true
if artifacts in provided
scope are to be skipped and neglected. false
is
set if wanted otherwise.skipOptionals
- is to be set to true
if artifacts in optional
scope are to be skipped and neglected. false
is
set if wanted otherwise.DependencyTree
is returned containing the artifacts
found.org.apache.maven.plugin.MojoExecutionException
- is thrown in cases of issues.Copyright © 2013–2015 PureSol Technologies. All rights reserved.