禁用Maven CheckStyle [英] Disable maven checkstyle

查看:1162
本文介绍了禁用Maven CheckStyle的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想执行一个Maven目标,但是checkstyle错误禁止这样做.我现在没有时间来纠正Checkstyle错误(我的Checkstyle规则最近已更新,我现在无法处理所有规则).

I want to execute a maven target but checkstyle errors forbids that. I have no time right now to correct checkstyle error (my checkstyle rules have been recently updated and I can't handle all of them right now).

是否有一种方法可以禁用checkstyle操作并执行我的目标?

Is there a way to disable checkstyle operation and execute my goal anyway ?

推荐答案

解决方案是:mvn [target] -Dcheckstyle.skip.

我喜欢此解决方案,因为它是临时的,不需要编辑pom文件或任何可以版本化的内容.

I like this solution as it is temporary and do not require editing of pom files, or anything that can be versioned.

这篇关于禁用Maven CheckStyle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆