你有用法:findbugs-maven-plugin
[...] [...] [...][...] org.codehaus.mojo findbugs-maven-plugin 1.2.1 true|false directory location of findbugs xdoc xml report High|Normal|Low|Exp|Ignore Min|Default|Max findbugs-exclude.xml findbugs-include.xml FindDeadLocalStores,UnreadFields FindDeadLocalStores,UnreadFields org.codehaus.mojo.findbugs.* /libs/fb-contrib/fb-contrib-2.8.0.jar true|false true|false true|false directory location of findbugs legact xml format report
但有一次:
mvn site
我明白了:
[INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. GroupId: org.codehaus.mojo ArtifactId: findbugs-maven-plugin Version: 1.2.1 Reason: Unable to download the artifact from any repository org.codehaus.mojo:findbugs-maven-plugin:pom:1.2.1 from the specified remote repositories: central (http://repo1.maven.org/maven2)
你知道为什么吗?我该怎么办?
查看存储库,您的版本应为1.2,而不是1.2.1
此外,您的配置错误,您需要选择一些选项.所以看起来应该是这样的:
org.codehaus.mojo findbugs-maven-plugin 1.2 High Default