maven 的 build 中的 plugin 的 jar 包始终无法下载,报错:Plugin ‘xxx:xxxx plugin:xxx‘ not found

一 报错

  • 类似于
Plugin 'org.codehaus.mojo:findbugs-maven-plugin1:3.0.6' not found 

二 解决

  • 可以将插件,以 dependency 形式,放到 dependencies 中,如果可以成功下载后就可以再放到 plugin 中
 <build><reporting><plugins><plugin><groupId>org.codehaus.mojogroupId><artifactId>findbugs-maven-pluginartifactId><version>3.0.5version><configuration><xmlOutput>truexmlOutput><threshold>Highthreshold><effort>Defaulteffort><relaxed>truerelaxed><findbugsXmlOutput>truefindbugsXmlOutput>configuration>plugin>plugins>reporting>build>
  • 改成
<dependency><groupId>org.codehaus.mojogroupId><artifactId>findbugs-maven-pluginartifactId><version>3.0.5version><type>pomtype>
dependency>


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部