私はmavenとchekstyleが初めてなので、質問する必要があります... mavenベースのプロジェクトでcheckstyleを使用したいのでpom.xml
、依存関係を追加しました
<dependency>
<groupId>checkstyle</groupId>
<artifactId>checkstyle</artifactId>
<version>2.4</version>
</dependency>
また、プラグインタグにエントリを追加しました:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.4</version>
<configuration>
<enableRulesSummary>true</enableRulesSummary>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
しかし、コマンドで maven ビルドを実行するとmvn clean install
、checkstyle は何もしません。そしてcheckstyle.xml
、システムにまだ何も持っていないので、エラーについて不平を言うべきではありませんか?
他にどのような構成がありませんか?