@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. |
java.io.File |
outputDirectoryLocation where the generated HTML aggregate report will be created. |
java.lang.String |
outputEncodingThe file encoding to use when creating the HTML reports. |
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) |
|
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. |
|
protected java.lang.String |
getOutputDirectory()Returns the report output directory. |
|
java.lang.String |
getOutputName()Returns report output file name, without the extension. |
|
java.lang.String |
getOutputPath()Returns report output file name, without the extension. |
|
void |
setReportOutputDirectory(java.io.File reportOutputDirectory)Sets the report output directory. |
The resource bundle.
Turn on Spotbugs debugging.
Effort of the bug finders. Valid values are Min, Default and Max.
Location where the generated HTML aggregate report will be created.
The file encoding to use when creating the HTML reports. If the property
project.reporting.outputEncoding is not set, utf-8 is used.
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.Returns 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 the report output directory.
Returns report output file name, without the extension.
Returns report output file name, without the extension.
Sets the report output directory.
spotbugs-maven-plugin Groovy Documentation