Can maven-exec-plugin fail the build?

后端 未结 1 1884
心在旅途
心在旅途 2021-01-17 09:45

I have a maven execution that runs a javascript compressor as a command line program, however, this tool also does some jslint checks as well.

If these jslint check

相关标签:
1条回答
  • 2021-01-17 10:40

    To my knowledge, exec:exec will fail the build if the return code of the executed command is not 0 (or one of the configured successCodes). Maybe you can build something around this.

    As an alternative, have a look at these plugins, they both can fail a build on problems:

    • the Jslint Maven Plugin
    • the YUI Compressor Maven Mojo

    Depending on what you need exactly, there is also the Maven Javascript Plugin.

    And also have a look at this Maven plugins for javascript question.

    0 讨论(0)
提交回复
热议问题