Maven 2 で checkstyle プラグインを使用しています。設定ファイルをデフォルトから a) オンライン ファイル、または b) ローカル ファイルに切り替えたいと考えています。次の2つのことを試しましたが、どちらもうまくいきませんでした。助言がありますか?
A) pom.xml の隣のプロジェクト フォルダーに直接あるローカル ファイル
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
B)サーバーに保存されているリモートファイル
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>http://stud.hs-heilbronn.de/~nischmid/development/checkstyle-config.xml</configLocation>
</configuration>
</plugin>
どちらの場合も、次のようなエラーが発生します。
[情報] Checkstyle レポート生成でエラーが発生しました。埋め込みエラー: checkstyle の実行中に失敗しました リソース 'file:checkstyle.xml' が見つかりませんでした。
どんな助けでも大歓迎です!