Checkstyle not working

Posted by user330060 on Stack Overflow See other posts from Stack Overflow or by user330060
Published on 2010-04-30T20:16:19Z Indexed on 2010/04/30 21:07 UTC
Read the original article Hit count: 272

Filed under:
|

Hi, I am new to maven and chekstyle, so need to ask some question... I want to use checkstyle in my maven based project, so in my pom.xml I have add the dependency

<dependency>
   <groupId>checkstyle</groupId>
   <artifactId>checkstyle</artifactId>
   <version>2.4</version>
</dependency>

and also I have added the entry in plugin tag:

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

But when I run my maven build with command mvn clean install, checkstyle doesn't do anything. And as I dont have any checkstyle.xml in my system yet, shouldn't it complains me about the error?

What else configuration am I missing?

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about checkstyle