@org.apache.maven.plugins.annotations.Mojo(name: spotbugs-aggregate, aggregator: true, requiresDependencyResolution: ResolutionScope.TEST, requiresProject: true, threadSafe: true) class SpotBugsAggregateMojo extends AbstractMavenReport
Generates an aggregate SpotBugs report for multi-module projects when the site plugin is run.
The HTML report is generated from the individual SpotBugs XML results of each module.
Run spotbugs:spotbugs on each module before using this goal.
| Type | Name and description |
|---|---|
java.util.ResourceBundle |
bundleThe resource bundle. |
boolean |
debugTurn on Spotbugs debugging. |
java.lang.String |
effortEffort of the bug finders. |
boolean |
skipSkip entire check. |
boolean |
skipEmptyReportSkip the Spotbugs HTML report generation if there are no violations found. |
java.lang.String |
spotbugsXmlOutputFilenameSpecifies the directory where the Spotbugs native XML output will be generated in each module. |
java.lang.String |
thresholdThreshold of minimum bug severity to report. |
| Constructor and description |
|---|
SpotBugsAggregateMojo() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
private java.io.File |
buildAggregatedXml(java.nio.charset.Charset effectiveEncoding)Collects and merges SpotBugs XML files from all reactor projects into a single aggregate XML file. |
|
boolean |
canGenerateReport()Checks whether prerequisites for generating this report are given. |
|
void |
executeReport(java.util.Locale locale)Executes the generation of the aggregate report. |
|
java.util.ResourceBundle |
getBundle(java.util.Locale locale)Get bundle. |
|
java.lang.String |
getDescription(java.util.Locale locale)Returns the plugins description for the "generated reports" overview page. |
|
java.lang.String |
getName(java.util.Locale locale)Returns the plugins name for the "generated reports" overview page and the menu. |
|
java.lang.String |
getOutputName()Returns report output file name, without the extension. |
|
java.lang.String |
getOutputPath()Returns report output file name, without the extension. |
The resource bundle.
Turn on Spotbugs debugging.
Effort of the bug finders. Valid values are Min, Default and Max.
Skip entire check.
Skip the Spotbugs HTML report generation if there are no violations found. Defaults to
false.
Specifies the directory where the Spotbugs native XML output will be generated in each module. The aggregate mojo looks for this filename in each reactor project's build directory.
Threshold of minimum bug severity to report. Valid values are High, Default, Low, Ignore, and Exp (for experimental).
Collects and merges SpotBugs XML files from all reactor projects into a single aggregate XML file.
effectiveEncoding - the charset to use for writing the output fileChecks whether prerequisites for generating this report are given.
Executes the generation of the aggregate report.
locale - the wanted locale to generate the report, could be null.Get bundle.
locale - the localeReturns the plugins description for the "generated reports" overview page.
locale - the locale the report should be generated forReturns the plugins name for the "generated reports" overview page and the menu.
locale - the locale the report should be generated forReturns report output file name, without the extension.
Returns report output file name, without the extension.
spotbugs-maven-plugin Groovy Documentation