[
http://jira.codehaus.org/browse/MFINDBUGS-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=265401#action_265401
]
Geoff Bennett commented on MFINDBUGS-141:
-----------------------------------------
The errors I displayed in my other comment are shown if I run findbugs from a
'root' module (ie: it has only 3rd party dependencies).
It's parent pom does not have any more dependencies in it or anything, it just
has plugins defined in the pluginManagement section.
{code:title=The findbugs plugin definition|borderStyle=solid}
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<excludeFilterFile>findbugs-suppressions.xml</excludeFilterFile>
</configuration>
</plugin>
{code}
I have also tried using the onlyAnalyze config option, but I get the same error.
{code:title=The pom of this 'root' module|borderStyle=solid}
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>dummy-group</groupId>
<artifactId>dummy-parent-project</artifactId>
<version>1.0</version>
<relativePath>path to parent pom.xml</relativePath>
</parent>
<artifactId>dummy-common</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>Dummy Common</name>
<dependencies>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-dbutils</groupId>
<artifactId>commons-dbutils</artifactId>
<version>1.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-jexl</groupId>
<artifactId>commons-jexl</artifactId>
<version>20080826</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-vfs</groupId>
<artifactId>commons-vfs</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.0.0.RELEASE</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>was</groupId>
<artifactId>j2ee</artifactId>
<version>7.0.0.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>1.6</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>2.3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jt400</groupId>
<artifactId>jt400</artifactId>
<version>6.1.0.10</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>velocity-tools</groupId>
<artifactId>velocity-tools</artifactId>
<version>1.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
{code}
> Make dependency resolution scope requirements the same as the compile plugin
> ----------------------------------------------------------------------------
>
> Key: MFINDBUGS-141
> URL: http://jira.codehaus.org/browse/MFINDBUGS-141
> Project: Maven 2.x FindBugs Plugin
> Issue Type: Task
> Reporter: Geoff Bennett
> Assignee: Garvin LeClaire
> Priority: Blocker
>
> I have a multi-module J2EE configuration that has a lot of dependencies of
> scope 'provided'. Because they are not of scope 'compile' I cannot run
> findbugs.
> Shouldn't the findbugs plugin operate the same way that the compile plugin
> works with respect to dependencies? If this was the case, 'provided' would
> also be on the classpath.
--
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