Status: Closed (View Workflow)
Platform: All, OS: All
Findbugs plugin throws FileNotFoundException for some of the files even though
the path is correct. Below is a snippet of the exception:
[FINDBUGS] Can't copy source file:
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
It doesn't fail the build and reports the statistics correctly. So, it is not a
big problem. But it is annoying to see so many exceptions in the log.
- is duplicated by
JENKINS-3469 fails to copy file
Actually I just looked at my code Then I've seen that the site goal will
always use the findbugs.xml file.
I didn't find the time to run the tests yet but I already use the site goal in
one of my jobs in my test setup...
Can you make your code to look for findbugsXml.xml file when running as a site
goal. I think that may do the trick.
Code changed in hudson
User: : drulli
[FIXED JENKINS-3511] Assume that maven site is producing the 'findbugsXml.xml' file format.
Hudson currently supports not the site goal in the same way as the other goals.
So in this case I can't read or modify the maven findbugs configuration in the pom.
I think the following workaround should be easy to implement:
When the m2 build uses the site goal, then I'm assuming that the user defined
the right findbugs properties in the pom, producing a findbugsXml.xml file. If I
can't find or read that file then I'm failing the build with an exception and
message that the pom needs to be modified manually.
What do you think?