Maven check style as a part of the build

前端 未结 3 2005
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-02 11:10

Is there a possibility to somehow force maven to fail the build if there are some checkstyle errors? Now I have to run site goal to generate java

3条回答
  •  梦谈多话
    2021-02-02 11:19

    It might have been some time since the question was asked, but this wasn't working for me.

    For anyone else that might be having the same issue as me, with the build succeeding despite a multitude of issues, I fixed it by lowering the violationSeverity property from its default error to warning in the plugin's configuration block.

提交回复
热议问题