When including tests Findbugs needs test classpath not compile classpath
------------------------------------------------------------------------

                 Key: MFINDBUGS-102
                 URL: http://jira.codehaus.org/browse/MFINDBUGS-102
             Project: Maven 2.x FindBugs Plugin
          Issue Type: Bug
    Affects Versions: 2.2
         Environment: Windows XP SP2, Maven 2.2.1
            Reporter: Grzegorz Slowikowski
            Priority: Minor
         Attachments: MFINDBUGS-xxx.diff

When including tests:

<configuration>
  <includeTests>true</includeTests>
</configuration>

auxClasspathElements must equal to testClassPath, not compileClassPath.

Now clompileClassPath is used always. In my project I have:

     [java] The following classes needed for analysis were missing:
     [java]   org.junit.Before
     [java]   org.junit.Assert
     [java]   org.junit.Test
     [java]   org.junit.After
     [java] Warnings generated: 3
     [java] Missing classes: 4

JUnit is my test dependency.

Fixing this is very simple.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.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


Reply via email to