@Mojo(name="update-only",
defaultPhase=GENERATE_RESOURCES,
threadSafe=false,
requiresDependencyResolution=NONE,
requiresOnline=true)
public class UpdateMojo
extends BaseDependencyCheckMojo
| Constructor and Description |
|---|
UpdateMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport()
Returns false; this mojo cannot generate a report.
|
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()
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.