@Mojo(name="update-only",
defaultPhase=GENERATE_RESOURCES,
threadSafe=true,
requiresDependencyResolution=NONE,
requiresOnline=true,
aggregator=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.
|
protected void |
runCheck()
Executes the dependency-check engine on the project's dependencies and
generates the report.
|
protected ExceptionCollection |
scanDependencies(Engine engine)
Throws an exception if called.
|
checkForFailure, execute, generate, generate, getArtifactScopeExcluded, getCategoryName, getConnectionString, getCorrectOutputDirectory, getCorrectOutputDirectory, getDataFileContextKey, getFormat, getOutputDirectory, getOutputDirectoryContextKey, getOutputName, getProject, getReactorProjects, getReportOutputDirectory, getSettings, initializeEngine, isExternalReport, isFailOnError, isGeneratingSite, newResolveArtifactProjectBuildingRequest, populateSettings, scanArtifacts, scanArtifacts, setReportOutputDirectory, showSummarypublic boolean canGenerateReport()
falseprotected 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 locationpublic String getDescription(Locale locale)
locale - The Locale to get the description forprotected ExceptionCollection scanDependencies(Engine engine) throws org.apache.maven.plugin.MojoExecutionException
scanDependencies in class BaseDependencyCheckMojoengine - the engine used to scanorg.apache.maven.plugin.MojoExecutionException - thrown if there is an exceptionCopyright © 2013–2018 OWASP. All rights reserved.