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>