我是maven和chekstyle的新手,所以需要问一些问题......我想在我的maven项目中使用checkstyle,所以在我pom.xml添加了依赖项
<dependency>
<groupId>checkstyle</groupId>
<artifactId>checkstyle</artifactId>
<version>2.4</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
而且我在插件标签中添加了条目:
<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>
Run Code Online (Sandbox Code Playgroud)
但是当我使用命令运行我的maven构建时mvn clean install,checkstyle不会做任何事情.而且由于checkstyle.xml我的系统中没有,我不应该抱怨这个错误吗?
我还缺少什么配置?