@Mojo(name="check",
defaultPhase=COMPILE,
threadSafe=true,
requiresDependencyResolution=RUNTIME_PLUS_SYSTEM,
requiresOnline=true)
public class DependencyCheckMojo
extends org.apache.maven.plugin.AbstractMojo
implements org.apache.maven.reporting.MavenMultiPageReport
| Modifier and Type | Field and Description |
|---|---|
static String |
TEST_SCOPE
The name of the test scope.
|
| Constructor and Description |
|---|
DependencyCheckMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateReport()
Returns whether or not the plugin can generate a report.
|
void |
execute()
Executes the dependency-check and generates the report.
|
void |
generate(org.codehaus.doxia.sink.Sink sink,
Locale locale)
Generates the Dependency-Check Site Report.
|
void |
generate(org.apache.maven.doxia.sink.Sink sink,
org.apache.maven.doxia.sink.SinkFactory sinkFactory,
Locale locale)
Generates the Dependency-Check Site Report.
|
String |
getCategoryName()
Returns the category name.
|
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.
|
String |
getOutputName()
Returns the output name.
|
File |
getReportOutputDirectory()
Returns the output directory.
|
boolean |
isExternalReport()
Returns whether this is an external report.
|
void |
setReportOutputDirectory(File directory)
Sets the Reporting output directory.
|
public static final String TEST_SCOPE
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionException - if a maven exception occursorg.apache.maven.plugin.MojoFailureException - thrown if a CVSS score is found that is
higher then the configured levelpublic void generate(org.codehaus.doxia.sink.Sink sink,
Locale locale)
throws org.apache.maven.reporting.MavenReportException
generate in interface org.apache.maven.reporting.MavenReportsink - the sink to write the report tolocale - the locale to use when generating the reportorg.apache.maven.reporting.MavenReportException - if a Maven report exception occurspublic void generate(org.apache.maven.doxia.sink.Sink sink,
org.apache.maven.doxia.sink.SinkFactory sinkFactory,
Locale locale)
throws org.apache.maven.reporting.MavenReportException
generate in interface org.apache.maven.reporting.MavenMultiPageReportsink - the sink to write the report tosinkFactory - the sink factorylocale - the locale to use when generating the reportorg.apache.maven.reporting.MavenReportException - if a maven report exception occurspublic String getOutputName()
getOutputName in interface org.apache.maven.reporting.MavenReportpublic String getCategoryName()
getCategoryName in interface org.apache.maven.reporting.MavenReportpublic String getName(Locale locale)
getName in interface org.apache.maven.reporting.MavenReportlocale - the locationpublic void setReportOutputDirectory(File directory)
setReportOutputDirectory in interface org.apache.maven.reporting.MavenReportdirectory - the output directorypublic File getReportOutputDirectory()
getReportOutputDirectory in interface org.apache.maven.reporting.MavenReportpublic String getDescription(Locale locale)
getDescription in interface org.apache.maven.reporting.MavenReportlocale - The Locale to get the description forpublic boolean isExternalReport()
isExternalReport in interface org.apache.maven.reporting.MavenReportpublic boolean canGenerateReport()
canGenerateReport in interface org.apache.maven.reporting.MavenReportCopyright © 2013–2014 OWASP. All rights reserved.