|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.owasp.dependencycheck.maven.DependencyCheckMojo
@Mojo(name="check",
defaultPhase=COMPILE,
threadSafe=true,
requiresDependencyResolution=RUNTIME_PLUS_SYSTEM,
requiresOnline=true)
public class DependencyCheckMojoMaven Plugin that checks project dependencies to see if they have any known published vulnerabilities.
| Field Summary | |
|---|---|
static String |
TEST_SCOPE
The name of the test scope. |
| Fields inherited from interface org.apache.maven.reporting.MavenReport |
|---|
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
DependencyCheckMojo()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TEST_SCOPE
| Constructor Detail |
|---|
public DependencyCheckMojo()
| Method Detail |
|---|
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 occurs
org.apache.maven.plugin.MojoFailureException - thrown if a CVSS score is found that is
higher then the configured level
public 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 report
org.apache.maven.reporting.MavenReportException - if a Maven report exception occurs
public 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 report
org.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 location
public 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 for
public boolean isExternalReport()
isExternalReport in interface org.apache.maven.reporting.MavenReportpublic boolean canGenerateReport()
canGenerateReport in interface org.apache.maven.reporting.MavenReport
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||