dev@glassfish.java.net

Re: findbugs-maven-plugin

From: Sahoo <Sahoo_at_Sun.COM>
Date: Thu, 05 Feb 2009 08:51:14 +0530

Bill,

Is there findbugs-maven-plugin configured in any of the parent POMs?
Please run "mvn help:effective-pom" in your subproject and let us know
if that's the case.

Thanks,
Sahoo

Bill Shannon wrote:
> I have a maven project with subprojects. I want to run FindBugs on
> only one of the subprojects so I configured the findbugs-maven-plugin
> in the pom.xml for that subproject.
>
> When I run "mvn findbugs:findbugs" from the top level project, it
> runs FindBugs 1.2.1.
>
> When I run it from the subproject, first it downloads *everything*.
> Then it actually uses FindBugs 1.3.7!
>
> Why all the extra downloads, and why the different behavior in the
> subproject?
>
> Here's the changes I made to the subproject pom.xml:
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>findbugs-maven-plugin</artifactId>
> - <version>2.0</version>
> + <version>2.0-SNAPSHOT</version>
> <configuration>
> <threshold>Normal</threshold>
> </configuration>
> </plugin>
> </plugins>
> </reporting>
> +
> + <pluginRepositories>
> + <!-- Repository for the SNAPSHOT version of findbugs plugin -->
> + <pluginRepository>
> + <id>codehaus-snapshot-repository</id>
> + <url>http://snapshots.repository.codehaus.org/</url>
> + <snapshots>
> + <updatePolicy>daily</updatePolicy>
> + </snapshots>
> + </pluginRepository>
> + </pluginRepositories>
> </project>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>