5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

5
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 こけるようにしたい。

5
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
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?