Fork me on GitHub

incremental-analysis:spotbugs

Full name:

com.worksap.tools:incremental-analysis-maven-plugin:1.1.0:spotbugs

Description:

A mojo to generate -onlyAnalyze parameter for spotbugs-maven-plugin. Generated parameter will be set as property of current Maven execution.
Execute this mojo before you run spotbugs-maven-plugin, then you can check analysis only for updated Java classes.

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: verify.

Optional Parameters

Name Type Since Description
<project> MavenProject - (no description)
User property is: project.
<propertyToAnalyze> String - Name of the property to generate value by this plugin, to specify -onlyAnalyze option to SpotBugs.
Default value is: spotbugs.onlyAnalyze.
<propertyToSkip> String - Name of the property to generate value by this plugin, to decide that spotbugs-maven-plugin needs to skip analysis or not.
Default value is: spotbugs.skip.
<skip> boolean - Flag to skip execution of this incremental-analysis plugin.
Default value is: false.
User property is: incremental.spotbugs.skip.
<source> String - Git ref of the source of pull-request or merge-request.
Default value is: HEAD.
User property is: incremental.spotbugs.source.
<target> String - Git ref of the target of pull-request or merge-request.
Default value is: refs/heads/master.
User property is: incremental.spotbugs.target.

Parameter Details

<project>

(no description)
  • Type: org.apache.maven.project.MavenProject
  • Required: No
  • User Property: project

<propertyToAnalyze>

Name of the property to generate value by this plugin, to specify -onlyAnalyze option to SpotBugs.
  • Type: java.lang.String
  • Required: No
  • Default: spotbugs.onlyAnalyze

<propertyToSkip>

Name of the property to generate value by this plugin, to decide that spotbugs-maven-plugin needs to skip analysis or not.
  • Type: java.lang.String
  • Required: No
  • Default: spotbugs.skip

<skip>

Flag to skip execution of this incremental-analysis plugin.
  • Type: boolean
  • Required: No
  • User Property: incremental.spotbugs.skip
  • Default: false

<source>

Git ref of the source of pull-request or merge-request.
  • Type: java.lang.String
  • Required: No
  • User Property: incremental.spotbugs.source
  • Default: HEAD

<target>

Git ref of the target of pull-request or merge-request.
  • Type: java.lang.String
  • Required: No
  • User Property: incremental.spotbugs.target
  • Default: refs/heads/master