Re: Findbugs report with excluded packages

2012-04-20 Thread jhoomsharabi

If pattern is not correct than it should be an issue with html report 
generation as well, I should have able to see bug patterns in html format 
findbugs report generation.
I can send you both my html generated report with and without bug patterns, in 
these reports you can clearly see the difference.
 
There is an issue but unable to nail down the issue here, there are so many 
users I am the only one who is facing this kind of problem.
 

-Original Message-
From: Ullrich Hafner ullrich.haf...@gmail.com
To: jenkinsci-users jenkinsci-users@googlegroups.com
Sent: Thu, Apr 19, 2012 8:57 pm
Subject: Re: Fwd: Findbugs report with excluded packages


Maybe your pattern is not correct, I'm using the following:

FindBugsFilter 
  Match 
  Bug code=CD / 
  Class name=~.* / 
  /Match 
  Match 
  Class name=~.*Messages / 
  /Match 
  Match 
  Bug code=UwF, SIC, NP / 
  Class name=~.*Test.* / 
  /Match 
  Match 
  Bug code=UwF / 
  Class name=~.*View.* / 
  /Match 
/FindBugsFilter


On 04/19/2012 10:28 AM, jhoomshar...@netscape.net wrote: 


 
With some investigation I found that if I run maven command with test cases and 
findbugs report generation through Jenkins 
mvn clean install findbugs:findbugs
 
the exclude list does not work and Jenkins findbugs report get generated with 
exclude list, but if I skip test cases
 
mvn -Dmaven.test.skip  clean install findbugs:findbugs
 
Findbugs report generated by Jenkins findbugs plugin looks pretty ok, but still 
entire exclusion does not happens like “Bug Patterns” (Bug 
pattern=REC_CATCH_EXCEPTION /) are still visible in findbugs generated 
report by Jenkins.
Still I have to test with emma report plus findbugs to see after effect
 
I am confused here whats going wrong, I need to generate all three reports in 
single project so that everything is accessible on single project.
Attaching my findbugs-exclude.xml file for reference.
 
I am using “maven-findbugs-plugin” version 2.3.1
 
Thanks,
 
-Original Message-
From: Ullrich Hafner ullrich.haf...@gmail.com
To: jenkinsci-users jenkinsci-users@googlegroups.com
Cc: jhoomsharabi jhoomshar...@netscape.net
Sent: Mon, Apr 16, 2012 7:49 pm
Subject: Re: Findbugs report with excluded packages


It's hard to see if your filters are correct if you don't post your filter. 

But anyway, if the findbugs.xml does not contain the warnings and 
findbugsXml.xml does contain the warnings then this seem to be a bug in the 
maven findbugs plug-in. Which version are you using? 

Ulli

On 04/16/2012 11:42 AM, jhoomshar...@netscape.net wrote: 


I looked into it and did not found any issue with reports generated by mvn 
findbugs:findbugs command the html report generated looks good, but the xml 
reports findbugsXml.xml still shows excluded class and packages under Jenkins 
Findbugs report, this is strange and I have no idea why and how this is 
happening, do I need to configure anything more in findbugs plug-in to exclude 
the packages, I don't think I have to any more configuration in findbugs plugin 
the exclude list should take care of exclude packages,
Or do I need to put exclude list under each modules rather than using it only 
in parent pom? 
Any help in this regard is highly appreciated.


 
-Original Message-
From: Ullrich Hafner ullrich.haf...@gmail.com
To: jenkinsci-users jenkinsci-users@googlegroups.com
Sent: Thu, Sep 29, 2011 6:48 pm
Subject: Re: Findbugs report with excluded packages


The FindBugs Jenkins plug-in does not read the exclude filters specified 
n your pom it just renders the results of the maven plug-in. I.e., this 
ust be a problem in your filter configuration.
Ulli
On 09/29/2011 02:44 PM, Christoph Kutzinski wrote:
 Is it working if you call mvn install findbugs:findbugs manually, i.e. from a 
hell?

 If not, we need to see your exclude and include files.


  Original-Nachricht 
 Datum: Thu, 29 Sep 2011 08:22:26 -0400 (EDT)
 Von: jhoomshar...@netscape.net
 An: jenkinsci-users@googlegroups.com
 Betreff: Findbugs report with excluded packages
 I am using Jenkins findbugs plugin v4.29, now I configured my pom to
 exclude few packages, but when I run my project which contains configuration
 mvn install findbugs:findbugs

 I am still seeing that findbugs is generating report for excluded
 packages, I have no idea if this is an issue with findbugs maven plugin or 
indbugs
 Jenkins plugin, my pom with finbugs configuration looks like this

 plugin
groupIdorg.codehaus.mojo/groupId
artifactIdfindbugs-maven-plugin/artifactId
version2.3.1/version
configuration
findbugsXmlOutputtrue/findbugsXmlOutput

 findbugsXmlWithMessagestrue/findbugsXmlWithMessages
xmlOutputtrue/xmlOutput

 excludeFilterFilefindbugs-exclude.xml/excludeFilterFile

 includeFilterFilefindbugs-include.xml/includeFilterFile
   /configuration

Re: Findbugs report with excluded packages

2012-04-20 Thread Ullrich Hafner
Maybe you could try on the findbugs list (however there is not much
traffic there...)

Ulli

On 04/20/2012 12:43 PM, jhoomshar...@netscape.net wrote:
 If pattern is not correct than it should be an issue with html report
 generation as well, I should have able to see bug patterns in html
 format findbugs report generation.
 I can send you both my html generated report with and without bug
 patterns, in these reports you can clearly see the difference.
  
 There is an issue but unable to nail down the issue here, there are so
 many users I am the only one who is facing this kind of problem.
  
  
 -Original Message-
 From: Ullrich Hafner ullrich.haf...@gmail.com
 To: jenkinsci-users jenkinsci-users@googlegroups.com
 Sent: Thu, Apr 19, 2012 8:57 pm
 Subject: Re: Fwd: Findbugs report with excluded packages

 Maybe your pattern is not correct, I'm using the following:

 FindBugsFilter
   Match
   Bug code=CD /
   Class name=~.* /
   /Match
   Match
   Class name=~.*Messages /
   /Match
   Match
   Bug code=UwF, SIC, NP /
   Class name=~.*Test.* /
   /Match
   Match
   Bug code=UwF /
   Class name=~.*View.* /
   /Match
 /FindBugsFilter


 On 04/19/2012 10:28 AM, jhoomshar...@netscape.net wrote:
  
 With some investigation I found that if I run maven command with test
 cases and findbugs report generation through Jenkins
 mvn clean install findbugs:findbugs
  
 the exclude list does not work and Jenkins findbugs report get
 generated with exclude list, but if I skip test cases
  
 mvn -Dmaven.test.skip  clean install findbugs:findbugs
  
 Findbugs report generated by Jenkins findbugs plugin looks pretty ok,
 but still entire exclusion does not happens like “Bug Patterns” (Bug
 pattern=REC_CATCH_EXCEPTION /) are still visible in findbugs
 generated report by Jenkins.
 Still I have to test with emma report plus findbugs to see after effect
  
 I am confused here whats going wrong, I need to generate all three
 reports in single project so that everything is accessible on single
 project.
 Attaching my findbugs-exclude.xml file for reference.
  
 I am using “maven-findbugs-plugin” version 2.3.1
  
 Thanks,
  
 -Original Message-
 From: Ullrich Hafner ullrich.haf...@gmail.com
 mailto:ullrich.haf...@gmail.com
 To: jenkinsci-users jenkinsci-users@googlegroups.com
 mailto:jenkinsci-users@googlegroups.com
 Cc: jhoomsharabi jhoomshar...@netscape.net
 mailto:jhoomshar...@netscape.net
 Sent: Mon, Apr 16, 2012 7:49 pm
 Subject: Re: Findbugs report with excluded packages

 It's hard to see if your filters are correct if you don't post your
 filter.

 But anyway, if the findbugs.xml does not contain the warnings and
 findbugsXml.xml does contain the warnings then this seem to be a bug
 in the maven findbugs plug-in. Which version are you using?

 Ulli

 On 04/16/2012 11:42 AM, jhoomshar...@netscape.net wrote:
 I looked into it and did not found any issue with reports generated
 by mvn findbugs:findbugs command the html report generated looks
 good, but the xml reports findbugsXml.xml still shows excluded class
 and packages under Jenkins Findbugs report, this is strange and I
 have no idea why and how this is happening, do I need to configure
 anything more in findbugs plug-in to exclude the packages, I don't
 think I have to any more configuration in findbugs plugin the
 exclude list should take care of exclude packages,
 Or do I need to put exclude list under each modules rather than
 using it only in parent pom?
 Any help in this regard is highly appreciated.

  
 -Original Message-
 From: Ullrich Hafner ullrich.haf...@gmail.com
 mailto:ullrich.haf...@gmail.com
 To: jenkinsci-users jenkinsci-users@googlegroups.com
 mailto:jenkinsci-users@googlegroups.com
 Sent: Thu, Sep 29, 2011 6:48 pm
 Subject: Re: Findbugs report with excluded packages

 The FindBugs Jenkins plug-in does not read the exclude filters specified 
 in your pom it just renders the results of the maven plug-in. I.e., this 
 must be a problem in your filter configuration.

 Ulli

 On 09/29/2011 02:44 PM, Christoph Kutzinski wrote:
  Is it working if you call mvn install findbugs:findbugs manually, i.e. 
  from a 
 shell?
 
  If not, we need to see your exclude and include files.
 
 
   Original-Nachricht 
  Datum: Thu, 29 Sep 2011 08:22:26 -0400 (EDT)
  Von: jhoomshar...@netscape.net mailto:jhoomshar...@netscape.net
  An: jenkinsci-users@googlegroups.com 
  mailto:jenkinsci-users@googlegroups.com
  Betreff: Findbugs report with excluded packages
  I am using Jenkins findbugs plugin v4.29, now I configured my pom to
  exclude few packages, but when I run my project which contains 
  configuration
  mvn install findbugs:findbugs
 
  I am still seeing that findbugs is generating report for excluded
  packages, I have no idea if this is an issue with findbugs maven plugin 
  or 
 findbugs
  Jenkins plugin, my pom with finbugs configuration looks like this
 
  plugin

Re: Findbugs report with excluded packages

2012-04-16 Thread Ullrich Hafner
It's hard to see if your filters are correct if you don't post your filter.

But anyway, if the findbugs.xml does not contain the warnings and
findbugsXml.xml does contain the warnings then this seem to be a bug in
the maven findbugs plug-in. Which version are you using?

Ulli

On 04/16/2012 11:42 AM, jhoomshar...@netscape.net wrote:
 I looked into it and did not found any issue with reports generated by
 mvn findbugs:findbugs command the html report generated looks good,
 but the xml reports findbugsXml.xml still shows excluded class and
 packages under Jenkins Findbugs report, this is strange and I have no
 idea why and how this is happening, do I need to configure anything
 more in findbugs plug-in to exclude the packages, I don't think I have
 to any more configuration in findbugs plugin the exclude list should
 take care of exclude packages,
 Or do I need to put exclude list under each modules rather than using
 it only in parent pom?
 Any help in this regard is highly appreciated.

  
 -Original Message-
 From: Ullrich Hafner ullrich.haf...@gmail.com
 mailto:ullrich.haf...@gmail.com
 To: jenkinsci-users jenkinsci-users@googlegroups.com
 mailto:jenkinsci-users@googlegroups.com
 Sent: Thu, Sep 29, 2011 6:48 pm
 Subject: Re: Findbugs report with excluded packages

 The FindBugs Jenkins plug-in does not read the exclude filters specified 
 in your pom it just renders the results of the maven plug-in. I.e., this 
 must be a problem in your filter configuration.

 Ulli

 On 09/29/2011 02:44 PM, Christoph Kutzinski wrote:
  Is it working if you call mvn install findbugs:findbugs manually, i.e. from 
  a 
 shell?
 
  If not, we need to see your exclude and include files.
 
 
   Original-Nachricht 
  Datum: Thu, 29 Sep 2011 08:22:26 -0400 (EDT)
  Von: jhoomshar...@netscape.net mailto:jhoomshar...@netscape.net
  An: jenkinsci-users@googlegroups.com 
  mailto:jenkinsci-users@googlegroups.com
  Betreff: Findbugs report with excluded packages
  I am using Jenkins findbugs plugin v4.29, now I configured my pom to
  exclude few packages, but when I run my project which contains 
  configuration
  mvn install findbugs:findbugs
 
  I am still seeing that findbugs is generating report for excluded
  packages, I have no idea if this is an issue with findbugs maven plugin or 
 findbugs
  Jenkins plugin, my pom with finbugs configuration looks like this
 
  plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdfindbugs-maven-plugin/artifactId
 version2.3.1/version
 configuration
 findbugsXmlOutputtrue/findbugsXmlOutput
 
  findbugsXmlWithMessagestrue/findbugsXmlWithMessages
 xmlOutputtrue/xmlOutput
 
  excludeFilterFilefindbugs-exclude.xml/excludeFilterFile
 
  includeFilterFilefindbugs-include.xml/includeFilterFile
/configuration
  /plugin
 
  Any help in this regard will be highly appreciated.
 
  Thanks,
  Jhoom