문제

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?

도움이 되었습니까?

해결책

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

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

Other refs:

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top