[
https://jira.codehaus.org/browse/MFINDBUGS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296704#comment-296704
]
Oliver B. Fischer commented on MFINDBUGS-162:
---------------------------------------------
Hi Garvin, I attached a screen-shot of the generated report. According to the
configuration I provide, the method {{_method}} should not be reported by
FindBugs.
I ran Maven with the {{-X}} flag and found the following log-messages:
{noformat}
[DEBUG] effort is Max
[DEBUG] effortParameter is max
[DEBUG] threshold is High
[DEBUG] thresholdParameter is -high
[DEBUG] Adding Include Filter Files
[DEBUG] resource is findbugs_include.xml
[DEBUG] location is null
[DEBUG] artifact is findbugs_include.xml
[DEBUG] The resource 'findbugs_include.xml' found using the
org.codehaus.plexus.resource.loader.ThreadContextClasspathResourceLoader@9e7d46.
[DEBUG] location of configFile file is
/home/plexus/labor/MavenFindBugsReportDefectExample/example/target/findbugs_include.xml
[DEBUG] Adding Exclude Filter Files
[DEBUG] resource is findbugs_exclude.xml
[DEBUG] location is null
[DEBUG] artifact is findbugs_exclude.xml
[DEBUG] The resource 'findbugs_exclude.xml' found using the
org.codehaus.plexus.resource.loader.ThreadContextClasspathResourceLoader@9e7d46.
[DEBUG] location of configFile file is
/home/plexus/labor/MavenFindBugsReportDefectExample/example/target/findbugs_exclude.xml
{noformat}
So FindBugs will use {{example/target/findbugs_exclude.xml}} as expected.
So, why is the method {{_method}} not excluded?
> Generated FindBugs report does not pay attention to exclusion filter
> --------------------------------------------------------------------
>
> Key: MFINDBUGS-162
> URL: https://jira.codehaus.org/browse/MFINDBUGS-162
> Project: Maven 2.x FindBugs Plugin
> Issue Type: Bug
> Affects Versions: 2.4.0
> Environment: Maven 2.2.1
> Reporter: Oliver B. Fischer
> Assignee: Garvin LeClaire
> Attachments: Bildschirmfoto-18.04.2012-10-50-26.png
>
>
> The by the FindBugs plugin generated report does not pay attention to the
> exclusion filter file specified in the POM.
> The situation is the following: If I specify an exclusion filter to exclude
> an class, method or something similar, the check goal uses this exclusion
> filter to skip error reports on the excluded artifacts. But the by the plugin
> generated report does not pay attention to this exclusion filter.
> IMHO this is an error. If I exclude specific artifacts I don't want to see
> them in the report.
> I created an example project to demonstrate this at github:
> https://github.com/plexusnexus/MavenFindBugsReportDefectExample
> To reproduce this defect do the following:
> - {{git clone
> [email protected]:plexusnexus/MavenFindBugsReportDefectExample.git}}
> - {{cd MavenFindBugsReportDefectExample/config}}
> - {{mvn install}}
> - {{cd ..\example}}
> - {{mvn install}}
> - {{mvn site}}
> - Open the generated FindBugs report
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email