Change By: Dennis Lundberg (20/Nov/12 12:17 PM)
Description: The incorrect exclude file is copied and used when findbugs is used in a multi-module maven project setup where each module uses its own exclude file.

For example:

{noformat}
root
+- module1
|  +- src/main/findbugs-excludes.xml
+- module2
   +- src/main/findbugs-excludes.xml
{noformat}


Both modules have a findbugs plugin configuration like:
{code:xml}
<plugin>
  <groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<configuration>
<excludeFilterFile>src/main/findbugs-excludes.xml</excludeFilterFile>
</configuration>
</plugin>
{code}

When calling mvn findbugs:findbugs from the root directory module2 will have the contents of module1's findbugs-exclude.xml in the target/findbugs-excludes.xml file instead of its own.

It works correctly when calling mvn findbugs:findbugs from the module2 directory.

The only workaround is to create unique filenames for the exclude files per module.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to