Frage

I'm trying to make Maven use a specific version of findbugs when running

mvn findbugs:findbugs

It seems to ignore whatever version I set inside the POM. I tried running it using just a test POM:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.test</groupId>
    <artifactId>test</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <packaging>pom</packaging>
</project>

-which just seems to use findbugs version 2.5.2 by default. Where did this version come from?

War es hilfreich?

Lösung

It is the latest version of the plugin. see Maven central repository

findbugs:findbugs refer to org.codehaus.mojo.findbugs:findbugs

Other refs:

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top