You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ma...@ubs.com on 2007/08/09 13:03:43 UTC
Findbugs plugin cannot find dependencies' classes
Dear Maven users,
I recently tried adding the findbugs mojo to our build. It seems fairly happy
except it is failing to find a lot of dependency classes. My configuration in
the top level pom looks like:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>1.1.1</version>
<configuration>
<xmlOutput>true</xmlOutput>
<xmlOutputDirectory>.</xmlOutputDirectory>
<threshold>Normal</threshold>
<effort>Max</effort>
<excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
<includeFilterFile>findbugs-include.xml</includeFilterFile>
<onlyAnalyze>com.ubs.*</onlyAnalyze>
<relaxed>false</relaxed>
<debug>true</debug>
</configuration>
</plugin>
...and the errors reported look like:
[INFO] There are Errors
[INFO] Printing Errors
[INFO] Printing Missing classes
The following classes needed for analysis were missing:
org.apache.commons.lang.exception.NestableException
org.apache.log4j.Logger
javax.jms.ExceptionListener
javax.jms.JMSException
javax.jms.ConnectionFactory
javax.jms.Destination
javax.jms.Connection
...
I grepped through the archives and have seen this crop up once or twice before
but no resolutions were posted. Can you suggest any advice?
Regards,
Matt
Re: Findbugs plugin cannot find dependencies' classes
Posted by blalor <Br...@fmr.com>.
Matthew-M.Rose wrote:
>
> I grepped through the archives and have seen this crop up once or twice
> before
> but no resolutions were posted. Can you suggest any advice?
>
No advice to offer, per se, but the findbugs mojo executes with the compile
classpath. Anything defined with a "runtime", "test", or "provided" scope
doesn't seem to be available to the plugin.
--
View this message in context: http://www.nabble.com/Findbugs-plugin-cannot-find-dependencies%27-classes-tf4241976s177.html#a12168114
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org