【问题标题】:How to integrate findbugs with maven如何将 findbugs 与 maven 集成
【发布时间】:2010-06-14 13:19:41
【问题描述】:

请提供将 findbugs 与 maven 集成的步骤

【问题讨论】:

    标签: maven-2 findbugs


    【解决方案1】:

    使用 Maven Findbugs 插件。示例见插件的usage page

    【讨论】:

      【解决方案2】:

      FindBugs 查找 Java 程序中的错误。它基于错误模式的概念,以便与 Maven 集成,请将以下内容放在您的插件部分。

      <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>findbugs-maven-plugin</artifactId>
          <version>2.0.1</version>
          <configuration>
              <xmlOutput>true</xmlOutput>
              <!– Optional directory to put FindBugs xdoc xml report –>
              <xmlOutputDirectory>target/site</xmlOutputDirectory>
              <threshold>High</threshold>
          </configuration>
      </plugin>
      

      【讨论】:

        猜你喜欢
        • 2015-04-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-05-02
        • 1970-01-01
        • 2015-02-24
        • 1970-01-01
        相关资源
        最近更新 更多