@Mojo(name="check",
defaultPhase=VERIFY,
threadSafe=false,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
requiresOnline=true)
public class CheckMojo
extends BaseDependencyCheckMojo
| Constructor and Description |
|---|
CheckMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport()
Returns whether or not a the report can be generated.
|
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.
|
void |
runCheck()
Executes the dependency-check engine on the project's dependencies and generates the report.
|
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 boolean canGenerateReport()
true if the report can be generated; otherwise falsepublic 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 an exception executing the goalorg.apache.maven.plugin.MojoFailureException - thrown if dependency-check is configured to fail the buildpublic String getName(Locale locale)
locale - the locationCopyright © 2013–2016 OWASP. All rights reserved.