Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12853

The Findbugs XML file is not searched correctly with latest Maven Findbugs plugin

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: findbugs-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.451, Maven 3.0.4, Maven Findbugs Plugin 2.4.0, Jenkins Findbugs Plugin 4.33
    • Similar Issues:

      Description

      When using the Maven2/3 job type, the Findbugs XML file isn't found. However, it is found under the following circumstances:

      • Using a free-style build
      • Adding <findbugsXmlOutput>true</findbugsXmlOutput> to the Maven Findbugs configuration. But this parameter has been deprecated. From the Maven site, it's not very clear what its behavior is: This has been deprecated and is on by default. Default value is: false.

      Even though the generated files are the same, the plugin seems to search for the XML files in a different way.

      Here's the output when the XML files are not found:

      [INFO] --- findbugs-maven-plugin:2.4.0:findbugs (default) @ base-impl ---
      [INFO] Fork Value is true
           [java] Warnings generated: 4
      [INFO] Done FindBugs Analysis....
      [FINDBUGS] Parsing 1 files in /ige/jenkins/work/jobs/base/workspace/base-impl/target
      [FINDBUGS] Successfully parsed file /ige/jenkins/work/jobs/base/workspace/base-impl/target/findbugs.xml of module Implementation of Base Services with 0 warnings.
      

      Here's the output when the XML files are found:

      [INFO] --- findbugs-maven-plugin:2.4.0:findbugs (default) @ base-impl ---
           [java] Warnings generated: 4
      [INFO] Done FindBugs Analysis....
      [FINDBUGS] Parsing 1 files in /ige/jenkins/work/jobs/base/workspace/base-impl/target
      [FINDBUGS] Successfully parsed file /ige/jenkins/work/jobs/base/workspace/base-impl/target/findbugsXml.xml of module Implementation of Base Services with 4 warnings.
      

      Also see the discussion on the mailing list.

        Attachments

          Activity

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              cristalp cristalp
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: