Fail the build if there were any FindBugs violations in the source code. An XML report is put out by default in the target directory with the errors. To see more documentation about FindBugs' options, please see the FindBugs Manual..
| Type | Name and description |
|---|---|
org.apache.maven.artifact.resolver.ArtifactResolver |
artifactResolverArtifact resolver, needed to download the coreplugin jar. |
int |
bugCount |
java.io.File |
classFilesDirectoryDirectory containing the class files for FindBugs to analyze. |
java.util.List |
compileSourceRootsThe directories containing the sources to be compiled. |
java.lang.Boolean |
debugturn on Findbugs debugging |
java.lang.String |
effortEffort of the bug finders. |
int |
errorCount |
java.lang.String |
excludeBugsFile |
java.lang.String |
excludeFilterFile |
boolean |
failOnErrorFail the build on an error. |
boolean |
findbugsXmlOutputLocation where generated html will be created. |
java.io.File |
findbugsXmlOutputDirectorySpecifies the directory where the findbugs native xml output will be generated. |
boolean |
forkFork a VM for FindBugs analysis. |
java.lang.String |
includeFilterFile |
boolean |
includeTestsRun Findbugs on the tests. |
java.lang.String |
jvmArgs |
org.apache.maven.artifact.repository.ArtifactRepository |
localRepositoryThe local repository, needed to download the coreplugin jar. |
int |
maxHeapMaximum Java heap size in megabytes (default=512). |
int |
maxRankMaximum bug ranking to record. |
java.lang.Boolean |
nestedThis option enables or disables scanning of nested jar and zip files found in the list of files and directories to be analyzed. |
java.lang.String |
omitVisitorsThe visitor list to omit. |
java.lang.String |
onlyAnalyzeRestrict analysis to the given comma-separated list of classes and packages. |
java.io.File |
outputDirectoryLocation where generated html will be created. |
java.lang.String |
outputEncodingThe file encoding to use when creating the HTML reports. |
java.util.List |
pluginArtifactsList of artifacts this plugin depends on. |
java.lang.String |
pluginList |
org.apache.maven.project.MavenProject |
projectMaven Project |
java.lang.Boolean |
relaxedRelaxed reporting mode. |
java.util.List |
remoteArtifactRepositoriesRemote repositories which will be searched for the coreplugin jar. |
org.codehaus.plexus.resource.ResourceManager |
resourceManager@since 2.0 |
org.apache.maven.doxia.siterenderer.Renderer |
siteRendererDoxia Site Renderer. |
org.apache.maven.doxia.tools.SiteTool |
siteToolSiteTool. |
boolean |
skipSkip entire check. |
java.lang.String |
sourceEncodingThe file encoding to use when reading the source files. |
java.io.File |
testClassFilesDirectoryDirectory containing the test class files for FindBugs to analyze. |
java.util.List |
testSourceRootsThe directories containing the test-sources to be compiled. |
java.lang.String |
thresholdThreshold of minimum bug severity to report. |
int |
timeoutSpecifies the amount of time, in milliseconds, that FindBugs may run before it is assumed to be hung and is terminated. |
java.lang.Boolean |
tracePrints a trace of detectors run and classes analyzed to standard output. |
java.lang.String |
visitorsThe visitor list to run. |
java.lang.String |
xmlEncodingEncoding used for xml files. |
boolean |
xmlOutputTurn on and off xml output of the Findbugs report. |
java.io.File |
xmlOutputDirectorySpecifies the directory where the xml output will be generated. |
java.io.File |
xrefLocationLocation of the Xrefs to link to. |
java.io.File |
xrefTestLocationLocation of the Test Xrefs to link to. |
| Constructor and description |
|---|
FindbugsViolationCheckMojo
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
execute() |
| Methods inherited from class | Name |
|---|---|
class org.apache.maven.plugin.AbstractMojo |
org.apache.maven.plugin.AbstractMojo#getPluginContext(), org.apache.maven.plugin.AbstractMojo#setPluginContext(java.util.Map), org.apache.maven.plugin.AbstractMojo#setLog(org.apache.maven.plugin.logging.Log), org.apache.maven.plugin.AbstractMojo#getLog(), org.apache.maven.plugin.AbstractMojo#wait(long, int), org.apache.maven.plugin.AbstractMojo#wait(long), org.apache.maven.plugin.AbstractMojo#wait(), org.apache.maven.plugin.AbstractMojo#equals(java.lang.Object), org.apache.maven.plugin.AbstractMojo#toString(), org.apache.maven.plugin.AbstractMojo#hashCode(), org.apache.maven.plugin.AbstractMojo#getClass(), org.apache.maven.plugin.AbstractMojo#notify(), org.apache.maven.plugin.AbstractMojo#notifyAll(), org.apache.maven.plugin.AbstractMojo#execute() |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Artifact resolver, needed to download the coreplugin jar.
Directory containing the class files for FindBugs to analyze.
The directories containing the sources to be compiled.
turn on Findbugs debugging
Effort of the bug finders. Valid values are Min, Default and Max.
File names of the baseline files. Bugs found in the baseline files won't be reported.
Potential values are a filesystem path, a URL, or a classpath resource.
This parameter is resolved as resource, URL, then file. If successfully
resolved, the contents of the configuration is copied into the
${project.build.directory}
directory before being passed to Findbugs as a filter file.
File name of the exclude filter. Bugs matching the filters are not reported.
Potential values are a filesystem path, a URL, or a classpath resource.
This parameter is resolved as resource, URL, then file. If successfully
resolved, the contents of the configuration is copied into the
${project.build.directory}
directory before being passed to Findbugs as a filter file.
Fail the build on an error.
Location where generated html will be created.
Specifies the directory where the findbugs native xml output will be generated.
Fork a VM for FindBugs analysis. This will allow you to set timeouts and heap size
File name of the include filter. Only bugs in matching the filters are reported.
Potential values are a filesystem path, a URL, or a classpath resource.
This parameter is resolved as resource, URL, then file. If successfully
resolved, the contents of the configuration is copied into the
${project.build.directory}
directory before being passed to Findbugs as a filter file.
Run Findbugs on the tests.
the arguments to pass to the forked VM (ignored if fork is disabled).
The local repository, needed to download the coreplugin jar.
Maximum Java heap size in megabytes (default=512). This only works if the fork parameter is set true.
Maximum bug ranking to record.
This option enables or disables scanning of nested jar and zip files found in the list of files and directories to be analyzed.
The visitor list to omit. This is a comma-delimited list.
Restrict analysis to the given comma-separated list of classes and packages.
Location where generated html will be created.
The file encoding to use when creating the HTML reports. If the property project.reporting.outputEncoding
is not set, the platform default encoding is used.
List of artifacts this plugin depends on. Used for resolving the Findbugs coreplugin.
The plugin list to include in the report. This is a comma-delimited list.
Potential values are a filesystem path, a URL, or a classpath resource.
This parameter is resolved as resource, URL, then file. If successfully
resolved, the contents of the configuration is copied into the
${project.build.directory}
directory before being passed to Findbugs as a plugin file.
Maven Project
Relaxed reporting mode. For many detectors, this option suppresses the heuristics used to avoid reporting false positives.
Remote repositories which will be searched for the coreplugin jar.
Doxia Site Renderer.
SiteTool.
Skip entire check.
The file encoding to use when reading the source files. If the property project.build.sourceEncoding
is not set, the platform default encoding is used.
Directory containing the test class files for FindBugs to analyze.
The directories containing the test-sources to be compiled.
Threshold of minimum bug severity to report. Valid values are High, Default, Low, Ignore, and Exp (for experimental).
Specifies the amount of time, in milliseconds, that FindBugs may run before it is assumed to be hung and is terminated. The default is 600,000 milliseconds, which is ten minutes. This only works if the fork parameter is set true.
Prints a trace of detectors run and classes analyzed to standard output. Useful for troubleshooting unexpected analysis failures.
The visitor list to run. This is a comma-delimited list.
Encoding used for xml files. Default value is UTF-8.
Turn on and off xml output of the Findbugs report.
Specifies the directory where the xml output will be generated.
Location of the Xrefs to link to.
Location of the Test Xrefs to link to.
Groovy Documentation