@Mojo(name="aggregate",
defaultPhase=VERIFY,
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 Engine |
generateDataFile()
Initilizes the engine, runs a scan, and writes the serialized dependencies to disk.
|
protected Engine |
generateDataFile(Engine engine,
org.apache.maven.project.MavenProject project)
Runs dependency-check's Engine and writes the serialized dependencies to disk.
|
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
|
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, 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 Engine generateDataFile() 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.protected Engine generateDataFile(Engine engine, org.apache.maven.project.MavenProject project) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
engine - the Engine to use when scanning.project - the project to scan and generate the data file fororg.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 © 2013–2016 OWASP. All rights reserved.