@Mojo(name="aggregate",
defaultPhase=VERIFY,
aggregator=true,
threadSafe=false,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
requiresOnline=true)
public class AggregateMojo
extends BaseDependencyCheckMojo
| Constructor and Description |
|---|
AggregateMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport() |
protected 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.
|
String |
getDescription(Locale locale)
Gets the description of the Dependency-Check report to be displayed in
the Maven Generated Reports page.
|
String |
getName(Locale locale)
Returns the report name.
|
protected boolean |
isMultiModule(org.apache.maven.project.MavenProject mavenProject)
Test if the project has pom packaging
|
protected MavenEngine |
loadEngine()
Initializes the engine.
|
void |
runCheck()
Executes the aggregate dependency-check goal.
|
checkForFailure, excludeFromScan, execute, generate, generate, getCategoryName, getConnectionString, getCorrectOutputDirectory, getCorrectOutputDirectory, getDataFile, getDataFileContextKey, getFormat, getOutputDirectory, getOutputDirectoryContextKey, getOutputName, getProject, getReactorProjects, getReportOutputDirectory, initializeEngine, isExternalReport, isFailOnError, isGeneratingSite, populateSettings, readDataFile, scanArtifacts, setReportOutputDirectory, showSummary, writeDataFile, writeReportspublic void runCheck()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
runCheck in class BaseDependencyCheckMojoorg.apache.maven.plugin.MojoExecutionException - thrown if there is ane exception running
the mojoorg.apache.maven.plugin.MojoFailureException - thrown if dependency-check is configured to
fail the buildprotected Set<org.apache.maven.project.MavenProject> getDescendants(org.apache.maven.project.MavenProject project)
project - the project for which all descendants will be returnedprotected boolean isMultiModule(org.apache.maven.project.MavenProject mavenProject)
mavenProject - Project to testtrue if it has a pom packaging; otherwise
falseprotected MavenEngine loadEngine() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - thrown if there is an exception running
the Mojoorg.apache.maven.plugin.MojoFailureException - thrown if dependency-check is configured to
fail the build if severe CVEs are identified.public boolean canGenerateReport()
public String getName(Locale locale)
locale - the locationCopyright? 2012-15 Jeremy Long. All Rights Reserved.