[
https://jira.codehaus.org/browse/MFINDBUGS-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292455#comment-292455
]
Ian Robertson commented on MFINDBUGS-151:
-----------------------------------------
I agree that this would be a great addition. That said, there is a work-around
that seems to do the trick. In your <build><plugins> section, add
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>fetch-findbugs4jmock</id>
<phase>package</phase>
<goals>
<goal>get</goal>
</goals>
<configuration>
<groupId>com.timgroup</groupId>
<artifactId>findbugs4jmock</artifactId>
<version>0.2</version>
</configuration>
</execution>
</executions>
</plugin>
</plugin>
This will force the artifact to be downloaded to your local repo prior to the
verify phase. Then in your reporting section, add:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<configuration>
<pluginList>${settings.localRepository}/com/timGroup/findbugs4jmock/0.2/findbugs4jmock-0.2.jar</pluginList>
</configuration>
</plugin>
> Ability to use findbugs detectors that are in a maven repository
> ----------------------------------------------------------------
>
> Key: MFINDBUGS-151
> URL: https://jira.codehaus.org/browse/MFINDBUGS-151
> Project: Maven 2.x FindBugs Plugin
> Issue Type: New Feature
> Reporter: Tom Fitzhenry
> Assignee: Garvin LeClaire
> Priority: Minor
>
> To use a third party detector, the recommended approach is
> http://mojo.codehaus.org/findbugs-maven-plugin/2.3.2/findbugs-mojo.html#pluginList
> . This requires the user to have to manually manage the plugins (and
> possibly include them in their repository, eww).
> Ideally, detectors could be managed via something along the lines of:
> {code:xml}
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>findbugs-maven-plugin</artifactId>
> <version>2.3.2</version>
> <configuration>
> <plugins>
> <plugin>
> <groupId>org.foo.bar</groupId>
> <artifactId>myThirdPartyDetector</artifactId>
> <version>1.0</version>
> </plugin>
> </plugins>
> </configuration>
> </plugin>
> {code}
> I don't know of any detectors that are available via maven.
> I have a detector, https://github.com/tomfitzhenry/findbugs-guice , that I'm
> willing to put on the Central Repository, to kick off the chicken-egg
> situation we have here.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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