I just switched to Maven 3.1 and saw that Findbugs was not reported on the page of the job anymore. When I switch back to Maven 3.0 it works like always.

      With Maven 3.1 I found two different warnings in the Logs:
      WARN org.apache.maven.eventspy.internal.EventSpyDispatcher - Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: Failed to load edu.umd.cs.findbugs.detect.TestASM

      WARN org.apache.maven.eventspy.internal.EventSpyDispatcher - Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: Could not initialize class edu.umd.cs.findbugs.SortedBugCollection

      Jenkins version: 1.526
      Jenkins Findbugs Plugin version: 4.49
      Findbugs Maven Plugin version: 2.5.2

        1. pluginversions.jpg
          pluginversions.jpg
          224 kB
        2. jenkins.log
          116 kB
        3. findbugs-maven-example.zip
          45 kB

          [JENKINS-19096] Findbugs Reporting not working with Maven 3.1

          Sabine Achilles created issue -

          Ulli Hafner added a comment -

          Is this a freestyle or maven job?

          Ulli Hafner added a comment - Is this a freestyle or maven job?

          It is a maven job.

          Sabine Achilles added a comment - It is a maven job.

          Ulli Hafner added a comment -

          Hmm, my build has no problem when running with maven 3.1.0. Is your build on the master or slave?

          Ulli Hafner added a comment - Hmm, my build has no problem when running with maven 3.1.0. Is your build on the master or slave?

          Both our Jenkins (on two seperate computers) run as the only master. And both have the same problem. We have the definition for FindBugs xml creation in the parent POM in the "profile" section.
          ...
          <profile>
          ...
          <build>
          <plugins>
          <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>findbugs-maven-plugin</artifactId>
          <configuration>
          <failOnError>false</failOnError>
          <xmlOutput>true</xmlOutput>
          </configuration>
          <executions>
          <execution>
          <goals>
          <goal>check</goal>
          </goals>
          </execution>
          </executions>
          </plugin>
          <plugins>
          <build>
          <profile>

          Sabine Achilles added a comment - Both our Jenkins (on two seperate computers) run as the only master. And both have the same problem. We have the definition for FindBugs xml creation in the parent POM in the "profile" section. ... <profile> ... <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <configuration> <failOnError>false</failOnError> <xmlOutput>true</xmlOutput> </configuration> <executions> <execution> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> <plugins> <build> <profile>

          Ulli Hafner added a comment -

          I still can't reproduce the problem. Can you please attach a small example project that exposes the bug?

          Ulli Hafner added a comment - I still can't reproduce the problem. Can you please attach a small example project that exposes the bug?

          I am experiencing the same problem, though this is the first Java/Maven project in our Jenkins setup.

          • Single master - no slaves
          • OpenJDK 7u25 + Maven 3.1.0 + Jenkins 1.527
          • FindBugs Maven 2.5.2 + FindBugs Jenkins 4.49
          • All other projects are PHP + Ant

          Log:

          INFO org.codehaus.mojo.findbugs.FindBugsMojo - Done FindBugs Analysis....
          WARN org.apache.maven.eventspy.internal.EventSpyDispatcher - Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: Failed to load edu.umd.cs.findbugs.detect.TestASM

          I do not see the message about SortedBugCollection in this bug's description.

          David Harkness added a comment - I am experiencing the same problem, though this is the first Java/Maven project in our Jenkins setup. Single master - no slaves OpenJDK 7u25 + Maven 3.1.0 + Jenkins 1.527 FindBugs Maven 2.5.2 + FindBugs Jenkins 4.49 All other projects are PHP + Ant Log: INFO org.codehaus.mojo.findbugs.FindBugsMojo - Done FindBugs Analysis.... WARN org.apache.maven.eventspy.internal.EventSpyDispatcher - Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: Failed to load edu.umd.cs.findbugs.detect.TestASM I do not see the message about SortedBugCollection in this bug's description.

          Here is an example which does not work on our Jenkins with Maven 3.1 but with Maven 3.0.

          Pre Step: "clean install" on the parent pom
          Build step: "clean install -P integration-build -X -e" on the parent pom

          Sabine Achilles added a comment - Here is an example which does not work on our Jenkins with Maven 3.1 but with Maven 3.0. Pre Step: "clean install" on the parent pom Build step: "clean install -P integration-build -X -e" on the parent pom
          Sabine Achilles made changes -
          Attachment New: findbugs-maven-example.zip [ 24225 ]

          Ulli Hafner added a comment -

          Ok, thanks. I installed the project, but it works on my machine.

          I'm using: Jenkins AND maven integration plugin 1.528. Can you retry with that version?

          BTW: i replaced the jgoodies version to 1.6.0 (the other is not in central)

          Ulli Hafner added a comment - Ok, thanks. I installed the project, but it works on my machine. I'm using: Jenkins AND maven integration plugin 1.528. Can you retry with that version? BTW: i replaced the jgoodies version to 1.6.0 (the other is not in central)

            drulli Ulli Hafner
            achbine Sabine Achilles
            Votes:
            17 Vote for this issue
            Watchers:
            30 Start watching this issue

              Created:
              Updated:
              Resolved: