【发布时间】:2011-09-18 04:39:29
【问题描述】:
当我的 Maven 构建在 Jenkins 上运行时,我希望 Eclipse 中的 Checkstyle 规则与规则匹配。
我该怎么做?
谢谢。
[编辑]
所以我将 eclipse 中的 checkstyle 设置导出到项目文件夹中的一个新 XML 文件中,并使用
将 maven checkstyle 插件指向该文件<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.6</version>
<configuration>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
【问题讨论】:
-
很高兴您发布了示例代码。 :)
标签: eclipse maven checkstyle