LoginSignup
6
5

More than 5 years have passed since last update.

mvn test で mvn findbugs:check も実行する

Last updated at Posted at 2014-10-02

概要

mvn findbugs:check にひっかかったらテストこけるようにする。

pom.xml

build 要素に以下を追加する。

pom.xml
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>3.0.0</version>
                <executions>
                    <execution>
                        <id>findbugs-test</id>
                        <phase>test</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

できた!
CI と組み合わせると幸せ度があがる感じ。

続きまして

Eclipse の Warnings がある場合に mvn package こけるようにしたい。

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5