@org.apache.maven.plugins.annotations.Mojo(name: gui, requiresDependencyResolution: ResolutionScope.TEST, requiresProject: true) class SpotBugsGui extends AbstractMojo implements SpotBugsPluginsTrait
Launch the Spotbugs GUI. It will use all the parameters in the POM fle.
| Type | Name and description |
|---|---|
java.io.File |
classFilesDirectoryDirectory containing the class files for Spotbugs to analyze. |
boolean |
debugTurn on Spotbugs debugging. |
java.lang.String |
effortEffort of the bug finders. |
java.lang.String |
encodingThe file encoding to use when reading the source files. |
RepositorySystem |
factoryUsed to look up Artifacts in the remote repository. |
static java.util.Locale |
localeLocale to use for Resource bundle. |
int |
maxHeapMaximum Java heap size in megabytes (default=512). |
java.util.List<Artifact> |
pluginArtifactsList of artifacts this plugin depends on. |
java.lang.String |
pluginListThe plugin list to include in the report. |
java.util.List<PluginArtifact> |
pluginsCollection of PluginArtifact to work on. |
RepositorySystem |
repositorySystemArtifact resolver, needed to download the plugin jars. |
org.codehaus.plexus.resource.ResourceManager |
resourceManagerResource Manager. |
MavenSession |
sessionMaven Session. |
java.io.File |
spotbugsXmlOutputDirectorySpecifies the directory where the Spotbugs native xml output will be generated. |
java.lang.String |
spotbugsXmlOutputFilenameSet the name of the output XML file produced |
| Constructor and description |
|---|
SpotBugsGui() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
execute() |
Directory containing the class files for Spotbugs to analyze.
Turn on Spotbugs debugging.
Effort of the bug finders. Valid values are Min, Default and Max.
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. Note: This parameter always overrides the
property charset from Checkstyle's TreeWalker module.
Used to look up Artifacts in the remote repository.
Locale to use for Resource bundle.
Maximum Java heap size in megabytes (default=512).
List of artifacts this plugin depends on. Used for resolving the Spotbugs core plugin.
The plugin list to include in the report. This is a SpotbugsInfo.COMMA-delimited list.
Collection of PluginArtifact to work on. (PluginArtifact contains groupId, artifactId, version, type, classifier.) See Usage for details.
Artifact resolver, needed to download the plugin jars.
Resource Manager.
Maven Session.
Specifies the directory where the Spotbugs native xml output will be generated.
Set the name of the output XML file produced
spotbugs-maven-plugin Groovy Documentation