@Mojo(name="aggregate",
defaultPhase=VERIFY,
aggregator=true,
threadSafe=true,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
requiresOnline=true)
public class AggregateMojo
extends BaseDependencyCheckMojo
| Constructor and Description |
|---|
AggregateMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport() |
protected java.util.Set<org.apache.maven.project.MavenProject> |
getDescendants(org.apache.maven.project.MavenProject project)
Returns a set containing all the descendant projects of the given
project.
|
java.lang.String |
getDescription(java.util.Locale locale)
Gets the description of the Dependency-Check report to be displayed in
the Maven Generated Reports page.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the report name.
|
protected boolean |
isConfiguredToSkip(org.apache.maven.project.MavenProject mavenProject)
Checks the ODC configuration in the child project to see if should be
skipped.
|
protected boolean |
isMultiModule(org.apache.maven.project.MavenProject mavenProject)
Test if the project has pom packaging
|
protected ExceptionCollection |
scanDependencies(Engine engine)
Scans the dependencies of the projects in aggregate.
|
protected ExceptionCollection |
scanPlugins(Engine engine,
ExceptionCollection exCollection)
Scans the plugins of the project.
|
checkForFailure, createProjectReferenceName, execute, generate, generate, getArtifactScopeExcluded, getCategoryName, getConnectionString, getCorrectOutputDirectory, getCorrectOutputDirectory, getExcludes, getOutputDirectory, getOutputName, getProject, getReactorProjects, getReportOutputDirectory, getSettings, initializeEngine, isExternalReport, isFailOnError, isGeneratingSite, newResolveArtifactProjectBuildingRequest, populateSettings, resolveArtifactDependencies, runCheck, scanArtifacts, scanArtifacts, scanPlugins, setReportOutputDirectory, showSummaryprotected ExceptionCollection scanDependencies(Engine engine) throws org.apache.maven.plugin.MojoExecutionException
scanDependencies in class BaseDependencyCheckMojoengine - the engine used to perform the scanningorg.apache.maven.plugin.MojoExecutionException - thrown if a fatal exception occursprotected ExceptionCollection scanPlugins(Engine engine, ExceptionCollection exCollection) throws org.apache.maven.plugin.MojoExecutionException
scanPlugins in class BaseDependencyCheckMojoengine - the engine used to perform the scanningexCollection - the collection of exceptions that might have occurred
previouslyorg.apache.maven.plugin.MojoExecutionException - thrown if a fatal exception occursprotected java.util.Set<org.apache.maven.project.MavenProject> getDescendants(org.apache.maven.project.MavenProject project)
project - the project for which all descendants will be returnedprotected boolean isConfiguredToSkip(org.apache.maven.project.MavenProject mavenProject)
mavenProject - the maven project to checktrue if the project is configured to skip ODC;
otherwise falseprotected boolean isMultiModule(org.apache.maven.project.MavenProject mavenProject)
mavenProject - Project to testtrue if it has a pom packaging; otherwise
falsepublic boolean canGenerateReport()
public java.lang.String getName(java.util.Locale locale)
locale - the locationpublic java.lang.String getDescription(java.util.Locale locale)
locale - The Locale to get the description forCopyright© 2012-21 Jeremy Long. All Rights Reserved.