简体   繁体   English

如何搜索特定的Maven插件

[英]How to search for specific maven plugin

How can I find maven plugin ? 我如何找到Maven插件? eg I am searching findbugs-maven-plugin in https://mvnrepository.com/ but this will search for dependencies: 例如,我在https://mvnrepository.com/中搜索findbugs-maven-plugin ,但这将搜索依赖项:

<dependency>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>findbugs-maven-plugin</artifactId>
    <version>3.0.4</version>
</dependency>

I am searching for: 我在寻找:

 <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>3.0.5-SNAPSHOT</version>
      </plugin>
    </plugins>

I think you just forgot to setup maven plugin repositories (or maybe you forgot to mention about it) 我认为您只是忘了设置Maven插件存储库(或者也许您忘了提及它)

For example: 例如:

  <pluginRepositories>
    <pluginRepository>
      <id>central</id>
      <url>https://repo1.maven.org/maven2</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>

also you could read little bit more about maven pom format on official site 您也可以在官方网站上阅读更多有关Maven Pom格式的信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM