2007-01-18から1日間の記事一覧

PMDでカスタムルールの実行

MavenでPMDをカスタムルールで実行するのに、 すごーく苦戦したので、メモっておく。 ルールセットの変更はconfigurationのrulesetsで行う。 <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <configuration> <sourceEncoding>MS932</sourceEncoding> <targetJdk>1.4</targetJdk> <rulesets> </rulesets></configuration></plugin></plugins></reporting>