[
http://jira.codehaus.org/browse/MFINDBUGS-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Lundberg moved MOJO-355 to MFINDBUGS-3:
----------------------------------------------
Component/s: (was: findbugs)
Key: MFINDBUGS-3 (was: MOJO-355)
Project: Maven 2.x FindBugs Plugin (was: Mojo)
> auxiliary classpath is not set up for running FindBugs
> ------------------------------------------------------
>
> Key: MFINDBUGS-3
> URL: http://jira.codehaus.org/browse/MFINDBUGS-3
> Project: Maven 2.x FindBugs Plugin
> Issue Type: Bug
> Environment: WindowsXP, maven 2.0.3, JDK 1.4.2
> Reporter: Thai Ha
> Assignee: Carlos Sanchez
>
> I'm developing a simple Web application which depends on servlet API
> <dependencies>
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.4</version>
> <scope>provided</scope>
> </dependency>
> ....
> When I try to run "mvn findbugs:findbugs" and open the FindBugs report, I
> found some errors as below:
> VR: Unresolvable reference to javax.servlet.ServletRequest by xxx (my action
> class name)
> In the findbugs plugin source code, I found the following code:
> ---------FindBugsMojo.java------------------
> final Reporter bugReporter = initialiseReporter( sink, bundle, log );
> final Project findBugsProject = new Project();
> addJavaSourcesToFindBugsProject( pSourceFiles, findBugsProject );
> final FindBugs findBugs = new FindBugs( bugReporter, findBugsProject
> );
> final UserPreferences preferences =
> UserPreferences.createDefaultUserPreferences();
> preferences.enableAllDetectors( true );
> findBugs.setUserPreferences( preferences );
> return findBugs;
> I guess the error happened because findBugsProject object is not set up with
> "auxiliary classpath" which are dependencies. Can anyone fix this issue?
--
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