@Mojo(name="aggregate",
defaultPhase=SITE,
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 Engine |
generateDataFile()
Runs dependency-check's Engine and writes the serialized dependencies to disk.
|
protected List<org.apache.maven.project.MavenProject> |
getAllChildren(org.apache.maven.project.MavenProject project,
Map<org.apache.maven.project.MavenProject,Set<org.apache.maven.project.MavenProject>> childMap)
Returns a list containing all the recursive, non-pom children of the given project, never
null. |
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, getCorrectOutputDirectory, getCorrectOutputDirectory, getDataFileContextKey, getFormat, getOutputDirectory, getOutputDirectoryContextKey, getOutputName, getProject, getReactorProjects, getReportOutputDirectory, initializeEngine, isExternalReport, 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 List<org.apache.maven.project.MavenProject> getAllChildren(org.apache.maven.project.MavenProject project, Map<org.apache.maven.project.MavenProject,Set<org.apache.maven.project.MavenProject>> childMap)
null.project - the parent project to collect the child project referenceschildMap - a map of the parent-child relationshipsprotected 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.public boolean canGenerateReport()
public String getName(Locale locale)
locale - the locationCopyright© 2012-14 Jeremy Long. All Rights Reserved.